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
2
votes
1 answer

Custom evalution policy for multiple choice questions based on the number of discrepancies

I am using exams2moodle, I would like to implement a custom evaluation policy for multiple choice questions, based on the number of discrepancies between the correct answers and the answers given by the student. In all multiple choice questions,…
eusebe
  • 362
  • 2
  • 7
2
votes
1 answer

Fail to run "learnr_questions.Rmd" from exams2learnr

I tried to run the example file "learnr_questions.Rmd" that comes as an example in exams2learnr package. The chunk: exams2learnr("swisscapital.Rmd", allow_retry = TRUE, incorrect = "Incorrect, try again.") generates "Invalid 'definition' argument"…
2
votes
1 answer

R-exams: extol command in Meta information

I just started working in R-exams package to prepare a set of dynamic questions. I am puzzled with the command "extol" in Meta information of the exercise: Meta-information ================ extol: 0.01 For instance, in the example above, what…
Joker312
  • 59
  • 5
2
votes
2 answers

Canvas quiz imported through exams2canvas is missing solution materials/answer feedback

I exported the quiz generated by sample code of exams2canvas: library("exams") options(device.ask.default = FALSE) set.seed(0) ## define an exams (= list of exercises) myexam <- c( "boxplots", "tstat", "ttest", "regression", …
2
votes
1 answer

R/exams Problem deploying app to shinyapps.io

I have developed a shiny app in which I use the function exams2blackboard from the R/exams package. I installed the package from http://R-Forge.R-project.org. When I go to publish it on shinyApps.io I receive the following error: Error: Unhandled…
Ruben
  • 31
  • 3
2
votes
1 answer

Can exams2moodle export additional metainfo such as idnumber and tags?

When I export the xml file of a multiple choice question, it contains the following lines: arbitrary_id_set_by_user ABCD Is there a way to add idnumber, answernumbering…
FrankS
  • 23
  • 4
2
votes
1 answer

exams num_to_schoice to include wrong alternatives

I am using num_to_choice to generate 5 options for a numeric exercise using the r exams package. I want my sc$questions to include the correct solution (res) plus two calculated wrong solutions (err1 and err2). I am using this code: sc <-…
JPMD
  • 644
  • 1
  • 7
  • 19
2
votes
1 answer

How to pass randomly-generated data to include_tikz in R/exams?

When I add static data to a chart created with TikZ and include_tikz() from R/exams, they are rendered correctly. For example I have created the following graphic using exams::include_tikz(graf01, library = "arrows") with the TikZ code below. And…
2
votes
2 answers

Why doesn't the table generated from r-exams appear in Moodle?

I have defined the variables and data necessary to generate a frequency table in RMarkdown, to export it to Moodle, using R-exams: xsubio<-c(sample(5:35,5)) xsubi<-sort(xsubio) frecuencias<-sample(0:30…
2
votes
1 answer

Dropdown menu for multiple-choice questions with exams2moodle

I use Sweave (Rnw) questions using exams2moodle() from R/exams. All works fine except when I'm trying to use dropdown question for schoice or mchoice questions. Following the manual I try to use the option cloze_mchoice_display = "MULTICHOICE", but…
2
votes
1 answer

Problems using character ' for derivatives in questions for Canvas

I am creating differential equation questions for uploading in Canvas via zip QTI. As you may think I write something like \[ y'' + y = x+1 \] in the body of the question. I tested the question in a HTML display and it was ok, BUT when I build a…
2
votes
2 answers

R/exams exams2moodle does not read data or source code

I am trying to use R/exams with an exercise that reads a local data set. The code from the exercise works fine when I run it interactively but it fails when I run it in exams2moodle(). The same issue occurs when I try to source() an R script within…
Nuno
  • 35
  • 6
2
votes
1 answer

How to change the correct answer of a question and replicate exams from scratch when exshuffle is on (package 'exams')?

I have the following question, where the argument of \exsolution is {0010} but it should be {1000} \begin{question} What is the capital of Italy \begin{answerlist} \item Rome \item Paris \item Vienna \item…
pendermath
  • 180
  • 7
2
votes
2 answers

Is possible to use the solution template in exams2nops?

When I try to generate the exams' solution with the exams2nops(...template="solution"...) I get the following error message: Error in exams2pdf(file, n = n, nsamp = nsamp, dir = dir, name = name, : formal argument "template" matched by multiple…
Sinval
  • 1,315
  • 1
  • 16
  • 25
2
votes
2 answers

Is there any way of controlling the exam ID?

We are using a loop with exams2nops to produce several exam versions of the same exam, but with different databases generated in an introduction file which is added to the final PDF produced by the exams2nops function. However, each loop produces an…
Sinval
  • 1,315
  • 1
  • 16
  • 25
1 2
3
17 18