Questions tagged [r-exams]

Questions related to the computer-based generation of exams (e.g., for classical written exams or e-learning platforms like Moodle) in particular with the R package "exams".

256 questions
3
votes
0 answers

problems using data.table in question template R-exams

I am stuck with this question that wants to use data.table. I used dplyr successfully in other questions, so i am a bit puzzled whats going on. ```{r data generation, echo = FALSE, results = "hide",…
Florian Oswald
  • 5,054
  • 5
  • 30
  • 38
3
votes
1 answer

exams2openolat: shufflesections and navigation do not work

I run the following command from the exams2openolat() video tutorial for summative online exams using R/exams exams2openolat(exm, n = 50, name = "R-exams-OpenOLAT", points = 1, maxattempts = 0, cutvalue = 2, solutionswitch = FALSE, duration =…
MrAffway
  • 33
  • 3
3
votes
1 answer

Using r-exams to include circuitikz package

I want to generate electric circuit picture using circuitikz packages and r-exams in R markdown. I already include circuitikz package in header-includes, it's successful when using knit But when executing exams2pdf , here is the error i get,, LaTeX…
hamkanen
  • 31
  • 2
3
votes
1 answer

Backslash symbol "\" in R environment within the string block

I have several string blocks in the R environment with "\" which is used to describe the latex symbols. However, when I use the expressions with a backslash "\" or double backslashes "\\" within \Sexpr{} in the question or answer parts, they do not…
Akram
  • 355
  • 1
  • 10
3
votes
1 answer

How does "attachments" option in exextra work?

I would like to know more about the attachments option in \exextra. Does this option allow the attachment(s) from students when they are submitting their answers? I could not find any worked example on this feature in http://www.r-exams.org/ or in…
Akram
  • 355
  • 1
  • 10
3
votes
1 answer

Answer boxes in R-exams

Is it possible to control the lengths of answer boxes in the Moodle from R-exams? The image below shows that the boxes have different lengths which probably correspond to those of the hidden answers. My answers contain a mixture of numeric and…
Akram
  • 355
  • 1
  • 10
3
votes
2 answers

Using R/exams in bookdown document (especially for HTML output)

I have created a "book" using bookdown. I would love to be able to add interactive quizzes, without needing shiny etc. Is it possible using R/exams (http://www.R-exams.org/) with bookdown? I'm mainly interested in the HTML output; PDF output a…
Pete
  • 199
  • 6
3
votes
1 answer

Use R/exams exams2pdf() to produce a PDF document

I am new to the R/exams package and I try to produce a pdf document from one of the templates provided by the developers. (http://www.R-exams.org/templates/confint3/) I am able to compile a Rnw file into a HTML document using the…
n. small
  • 45
  • 6
3
votes
1 answer

How to include an external file in a Moodle question with R/exams?

In order to include statistical tables when using R-exams, I know that one can just use the option pages inside the function exams2nops(). But when using exams2moodle() how should one proceed? In Moodle one can upload a file within a question and…
user12703198
  • 423
  • 3
  • 11
3
votes
1 answer

r-exams: R output formatting in cloze sub-item

In r-exams, we want to include R output within a cloze question sub-item; exported as PDF (for a printed exam). While printing of R output works fine in the regular question part, it fails within the \begin{answerlist} environment of the cloze…
Felix S
  • 1,769
  • 2
  • 13
  • 17
3
votes
2 answers

Add whitespace below questions for written answers in PDFs

We only have written (paper-pencil) exams, and we only have short/medium-sized string answers. In our current exams, we present the question, and leave some whitespace below (which varies depending on the expected length of the answer). How can I…
Felix S
  • 1,769
  • 2
  • 13
  • 17
3
votes
1 answer

R/exams NOPS generates documents in Times New Roman, which then fail during scanning

I have been using r/exams in some of my last exams and everything has worked fine. This semester, however, r/exams seems to generate the exams in Times New Roman instead of Helvetica, which messes with the character recognition in the scanning…
3
votes
1 answer

LaTeX symbols are not been converted correctly to Moodle

When I use exams2moodle() to generate a cloze quiz, LaTeX symbols are not generated correctly. Example: (in .Rmd file): ... $\hat{p}$ In Moodle it is presented as: \hat{p} (Observation: It works in exams2html().) It is converted as:
3
votes
1 answer

Moodle exam with minimum zero points for multiple choice task

How can I create a moodle question via the {exams} package that scores multiple choice questions with at least zero points? I already tried: exams2moodle(..., mchoice = list(eval = list(negative = FALSE)))
sammerk
  • 1,143
  • 1
  • 9
  • 23
2
votes
1 answer

Numeric exercises with large solution lead to error

Background R/exams is a great tool for generating exams for students. Problem When a numeric exercise has a large solution, an error is thrown: Error in string2num(exsolution) : all numeric items must be finite and non-missing Is this a bug or…
Sebastian Sauer
  • 1,555
  • 15
  • 24
1
2
3
17 18