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".
245
questions
1
vote
1
answer
29
views
Change TRUE and FALSE to Verdadero and Falso in "mchoice" exercises of R-exams
I want change TRUE and FALSE to "Verdadero" and "Falso" in "mchoice" exercises of R-exams.
In which template should I do it?
1
vote
2
answers
36
views
R/exams unicode char in *.Rnw question files are not propoerly displayed: é displayed as <U+00E9> in final PDF
I am struggling to produce an exam sheet in French using exams2nops. There are accents in the text provided in the intro and title argument of this function and also in the Rnw files containing the ...
2
votes
1
answer
47
views
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 ...
1
vote
1
answer
24
views
Importing quizzes into Canvas with supplement file
I don't seem to be able to correctly import an exam generated with this lm template.
The exams2canvas("lm.Rmd", n = 10) function will generate the following error:
Error in switch(type, num ...
5
votes
3
answers
138
views
Prevent copy & paste of code chunks in R/exams
We currently use R/exams to create exams in our coding course. We found students could easily copy & paste the code chunk and run it without thinking. Example:
We thus wonder if there is an ...
0
votes
0
answers
39
views
Error in nops_eval(register = "C:/Users....: length(attr(scans, "check")) == 0L is not TRUE
When trying to mark an exam:
ev1 <- nops_eval(
register = "C:/Users/(...) /R_Exam2/nops_scan/lista.csv",
solutions = "C:/Users/(...) /R_Exam2/nops_pdf/...
1
vote
1
answer
44
views
R/exams use styles in reference.docx
With vanilla pandoc, when converting to docx, it is possible to adapt the paragraph styles in a reference.docx that is passed to pandoc via --reference-doc=reference.docx. However, in r-exams this is ...
1
vote
1
answer
75
views
R/exams: Open-ended text question in exams2blackboard
Using string questions in exams2blackboard() from R/exams, is there a way to set the size of the box where students type in their answer in an open-ended question? Using string generates just a single ...
1
vote
1
answer
26
views
How can I print one question per page in exams2pdf?
I am writing an exam using exams2pdf. Is there a way to get each question on a new page?
I did not find an option in the manual so far.
1
vote
1
answer
25
views
How to deal with R/exams nops_pdf string questions?
I created several nops_pdf exams which produced several .rds with the exam information. I usually do it, and then use this code (provided by Achim) to merge all .rds:
## readRDS all *.rds files in the ...
1
vote
2
answers
43
views
How to use tables as options of a schoice exercise in r exams?
I want to create an schoice exercise where each of the five options is a table with a CDF, like this one:
I do not want to provide tables as image. I came across a possibility:
creating a list with 5 ...
3
votes
1
answer
39
views
modify order of questions in nops
Let us say we have 20 questions with different number of answers and we want that the questions are not is the same order in the generated nops, how can we do it?
I tried :
myexam <- dput(dir("...
1
vote
1
answer
39
views
How to extract exercises names from a nest list of exams from r `exams`?
I created 8 exams using the r exams package (each with the corresponding *.rds file). Each exam has the same 8 items (in a different order). All exams' *.rds were merged into a single list. As follows:...
2
votes
1
answer
32
views
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 ...
1
vote
1
answer
46
views
Extract exname information
I want create the section dynamically, not from .Rnw files. It can be done with stitle parameter of exams2moodle().
The stitle should based on directory structure and I want add the value of exname ...
1
vote
2
answers
79
views
Possible meta-informations in R/exams
I discover the very useful R/exams package, as well as its very complete documentation.
Unless I'm mistaken, I didn't find a place providing an exhaustive list of meta-informations that can be ...
1
vote
0
answers
30
views
Cant implement a logo in exams2nops
I have the problem to implement a logo in exams2nops. I dont no why, because the path is right. also i have used other formats beside .png. Is there a scale or size limitation present?
Does anyone has ...
2
votes
1
answer
38
views
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 = ...
1
vote
0
answers
45
views
Force or prevent Pagebreaks by diffrent Sections inside exams2nops
I want to create a exam with exams2nops. My approach is to have diffrent types of Questions inside of Sections. Iam wondering, if i could force or prevent a pagebreak inside various sections (or parts)...
1
vote
1
answer
78
views
Tables in R-markdown not shown in Moodle - exams2moodle
I have a serious problem with rendering tables in Moodle once I upload the Moodle XML file generated by R-exams package to Moodle. I am using exercise files in .Rmd format handed to me from a previous ...
1
vote
1
answer
141
views
Use exams2pdf or a modified solution.tex template to print solutions not another answer list
I am trying to create a solution pdf for an exam but all I need for it is a simple marked box and not the answer list that follows. For example, I just want the first page from the following ...
2
votes
1
answer
59
views
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
================
...
1
vote
1
answer
81
views
Partial credit for numeric exercises (e.g. for guessing tasks)?
I'm teaching students to visually approximate effect sizes from typical plot types (e.g. Pearson's r from scatter and parallel coordinates plots, Kendall's τ from alluvial plots, Cramer's V from ...
1
vote
1
answer
69
views
Answerlist with two columns only on specific questions
Is there a way of specifying an answerlist with two columns directly in the .rmd question?
I am preparing a single choice pdf exam using R exams exams2pdf(myexam, n=1) with answer lists containing ...
1
vote
1
answer
54
views
How to reduce plot (image) size for `exams2pdf` output?
When I reduce the size of the image in the scatterplot.Rmd file and weave it into exams2html, the result is as expected. The same thing happens when I knit the file with the knitr button.
I achieve ...
1
vote
1
answer
54
views
How to remove brackets in a reticulate output in R/exams?
I have the following single-choice exercise RadicalPrimo.Rmd, which is intended to simplify square roots:
```{r data generation, echo = FALSE, results = "hide"}
library("exams")
...
1
vote
1
answer
66
views
R/exams: Duplicated images in PDF files
When using several R/exams exercises with TikZ plots, I have no problems generating exams in HTML format or for Canvas. However, exactly the same exercises when rendered to PDF show the same plots in ...
1
vote
1
answer
66
views
R/exams: How to change default "Exam 1" produced by exams2html
Is there a way to change the "Exam 1" to another word like "Homework 1" by passing arguments?
If not, is there a default template I can modify?
My last resort is to modify the ...
1
vote
1
answer
62
views
How to include all elements of a vector in an exams2moodle or exams2pdf output?
I am working on a simple code to find the square root of the following elements:
dat <- c(4,9,16,25,36,49,64,81,100,121,144,169,196,225)
num<-sample(dat ,1,replace=F)
Parts of the seed ...
2
votes
2
answers
143
views
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(
&...
1
vote
1
answer
56
views
Logical solutions, FALSE, TRUE export wrongly to moodle
I've solutions of a cloze question, sol4=FALSE and sol5=TRUE but when I export the exercise to moodle with exsolution: r mchoice2moodle(sol4)|r mchoice2moodle(sol5), both solutions equal TRUE (...
1
vote
1
answer
74
views
R/exams: how to select different font type for pdfs
HI am pretty new to coding with R/LaTeX and currently trying to figure out how to set up exams using R/exams. While I have already managed to create the exercises themselves, I now want to save them ...
1
vote
1
answer
56
views
Is it possible to remove the letter prefix ("a. ", "b. ", etc.) from the possible answers in mulitple choice tests?
When producing multiple choice questions, exams prefixes the possible answers with lower case letters. Is it possible to change this behaviour when using exams2qti21 so that the answers are displayed ...
1
vote
1
answer
70
views
In driver$read(file_tex[idj]) : length of exsolution and solutionlist does not match
i've got issues in the creating of an exam with the r-exams-package. It shows this error message:
In driver$read(file_tex[idj]) : length of exsolution and solutionlist does not match
When i ...
1
vote
1
answer
87
views
Change correct answer of exercise created with r-exams after openolat test was taken
If an exam is created with r-exams, exported to openolat with exams2openolat(exm, n = 50,...) and already been taken by multiple students, OLAT grades the students automatically. After the test one ...
1
vote
1
answer
110
views
How to ask a question of type "file upload"
Using exams2openolat for exporting exercises from R/exams to OpenOlat, is there a way to ask a question where the student can upload a file as an answer (pdf, jpg, ...)? This would be useful for ...
1
vote
0
answers
115
views
difficulty using r/exams exams2qti21 for canvas new quizzes
Has anyone had luck importing an r/exams QTI into Canvas "New Quizzes", or is an update forthcoming that would enable this? I saw this thread, Is exams2canvas compatible with Canvas New Quiz ...
1
vote
1
answer
75
views
R-exams: How to change margins in exams2nops()?
I would like to prepare an exam using exams2nops() function. However, I want to change margins in a questions section. I tried to modify the header argument in the exams2nops function to:
exams2nops(.....
1
vote
1
answer
70
views
`nops_eval` is not reading the exam ID, how can I control the exam ID reading?
I have about 400 exams in which I defined a custom ID (using the function exams2nops). However, when I use nops_scan none of the IDs is recognized... example:
An exam sample:
Is it due to the number ...
1
vote
1
answer
181
views
Fixing font size in tex2image graphics
I created several graphics with different font sizes using the tex2image() function from the exams package. But the parameter pt, which should specify the font size, only seems to have an effect on ...
1
vote
1
answer
115
views
Autograding of NOPS exams: Implementation & extension to string questions?
We are using R/exams to create tests in Canvas and TestVision.
We have other forms and other software to perform written exams.
I know R/exams has a great NOPS feature and was wondering:
What ...
1
vote
1
answer
50
views
how to use the option '\exshuffle{}' in 'cloze' questions
I would like to randomize a cloze question using \exshuffle{5} as here:
<<echo=FALSE, results=hide>>=
questions <- solutions <- explanations <- list()
type <-rep("...
1
vote
0
answers
48
views
kableExtra HTML tables in exams2blackboard do not render properly in Blackboard Ultra VLE
I have the following R/Markdown code that uses R/exams and kableExtra to generate a randomised question for use in the Blackboard Ultra VLE. Although it renders fine in plain HTML when I import the ...
1
vote
1
answer
98
views
tolerance in cloze questions
I would like to understand how to set up correctly tolerance bounds in cloze questions containing numeric and schoice questions.
Here is an example, where I have a schoice question followed by two ...
1
vote
1
answer
128
views
Including static image does not work in R/exams
I tried to adapt the Rlogo.Rmd exercise from R/exams but the inclusion of the statitic image does not work. It does not appear in Moodle or HTML and I don't see what I am missing. The Rmd for my ...
1
vote
1
answer
87
views
Cloze questions without solution environment does not work in R/exams
I tried one of the R/exams examples posted in the forum and tried to create Moodle questions but I get following error message.
exams2moodle("sample_1.Rnw")
## Error in split.default(...
1
vote
1
answer
147
views
Using two templates with custom name in exams2pdf
I am using exams2pdf() to generate two PDF files as:
exams2pdf(file = "ICvar.Rmd",
name = "icvar",
engine = "knitr",
verbose = FALSE,
...
0
votes
1
answer
121
views
exams2pdf latex error !Missing $ inserted
I am puzzled with this error when compiling an exercise with exams2pdf():
Exam 1: ICvar (srt) ... w! Missing $ inserted.
<inserted text>
$
l.7 ...rime 2}}{\chi^2_{1-\frac{\alpha}...
1
vote
1
answer
72
views
Randomization of question structure in r-exams
I am trying to create a canvas quiz that asks students to evaluate the effective resistance of different circuits. The circuits contain between 2 and 4 resistors with values chosen from the E12 series....
2
votes
1
answer
175
views
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 ...