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".

Filter by
Sorted by
Tagged with
-1 votes
1 answer
16 views

R/Exams: workflow or example with questions bank/group, and personalized quiz

I plan to return to teaching as an adjunct faculty in the near future. This go around, I plan to leverage R/Exams to streamline assignments and quizzes. I plan to leverage New Quizzes in Canvas to ...
Vinh Nguyen's user avatar
  • 1,052
1 vote
1 answer
25 views

exams2canvas inline schoice has "a.1", "a.2",... prefixes. Is this a bug?

Okay, I did my best to make a minimal example. Let's say this is "q2.Rmd": ```{r data generation, echo = FALSE, results = "hide"} mu = runif(1,200,800) sig = runif(1,10,70) n = ...
Chad Worley's user avatar
1 vote
1 answer
11 views

exams2pdf breaks with url links?

In this RMD file ("q1.rmd"), I make a link using standard markdown syntax. ```{r data generation, echo = FALSE, results = "hide"} knitr::opts_chunk$set(echo = FALSE) options(scipen=...
Chad Worley's user avatar
1 vote
1 answer
28 views

Feedback for string exercises in OpenOlat with R/exams

I have the following problem. I want to export this exercise written with R/exams to OpenOLAT ```{r, include=FALSE} explanation <- "Long Text" solution <- "Short Text" ``` ...
Appletini's user avatar
1 vote
1 answer
68 views

How to highlight code using R exams to pdf function

I want to create an R/exams exercise (in PDF format) where the R code is highlighted. I tried to use the highlight=TRUE option in the code chunk, but it produced an error when I tried to generate the ...
Sinval's user avatar
  • 1,315
1 vote
1 answer
29 views

Could we extend R/Exams to include the Brightspace LMS?

I'm an enthuastic user of R/exams, it's a wonderful system and it has revolutionised my use of our university's LMS. But now we're moving from Moodle to Brightspace. I'm wondering, would it be ...
eugene100hickey's user avatar
1 vote
1 answer
36 views

exams::tex2image failing to compile with no logs

I'm trying to compile a R Markdown file that uses exam::tex2image to generate an image from a Latex equation. Unfortunately the compilation fails, the error message talks about a log file which doesn'...
robertspierre's user avatar
1 vote
0 answers
141 views

Invalid UTF-8 byte sequence in Title from the exams2nops function in R/Exams

I am using the exams package and function exams2nops. My code is: exams2nops(file=quests, n=1, nsamp = 1, intro = "\\includepdf[pages=-]{D:/OneDrive - ISPA/AEI/...
JPMD's user avatar
  • 644
1 vote
1 answer
65 views

r-exams: 'Meta-information' warnings in fully automated question generation: can they be removed? Are they important? (code works fine)

I'm writing some code to automate as much as possible the process of generating questions. This involves building the question inside the r code part of the file. A MWE to illustrate the scenario can ...
Joan Sanz's user avatar
1 vote
1 answer
56 views

nops_eval giving a error in scan response

[![enter image description here][1]][1]I run the following code and get the following error: > ev1 <- nops_eval( + register = "RegFile.csv", + solutions = "output/metainfo.rds&...
Patella's user avatar
  • 61
1 vote
1 answer
23 views

R-exams: drag and drop question type into Moodle

My question is short: is it possible in exams2moodle use drag&drop question type (or is it a plan)? For example: with tikzpicture generate a circle with some lines (chord, secant, tangent, radius, ...
uzsolt's user avatar
  • 5,832
1 vote
0 answers
53 views

Missing quiz description in Canvas

I've successfully imported a quiz into canvas, but for some reason the description does not appear (even though it's in the XML). (this box is empty when I import the quiz generated by the command ...
learnjulia's user avatar
1 vote
1 answer
44 views

Numeric questions with large tolerance throw error

Background R/exams is a great tool for generating exams for students. Problem When a numeric exercise has a large tolerance (extol), an error is thrown: Error in if (!is.null(extol) && any(...
Sebastian Sauer's user avatar
1 vote
1 answer
49 views

exam2nops not processing latex commands

I am endeavouring to create a statistics class exam with the R/exams package. So I am creating a series of Rmd files to create the questions as per the requirements of the package. My issue is with ...
Patella's user avatar
  • 61
1 vote
1 answer
44 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?
Amelia's user avatar
  • 111
1 vote
2 answers
52 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 ...
vdet's user avatar
  • 21
2 votes
1 answer
75 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 ...
Sebastian Sauer's user avatar
1 vote
1 answer
58 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 ...
CptNemo's user avatar
  • 6,475
5 votes
3 answers
207 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 ...
HiMifeng's user avatar
0 votes
0 answers
46 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/...
Amilcar Moreira's user avatar
1 vote
1 answer
116 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 ...
monade's user avatar
  • 303
1 vote
1 answer
98 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 ...
Andrea Monticini's user avatar
1 vote
1 answer
81 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.
Michel Krebs's user avatar
1 vote
1 answer
52 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 ...
Sinval's user avatar
  • 1,315
1 vote
2 answers
65 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 ...
Sinval's user avatar
  • 1,315
3 votes
1 answer
69 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("...
Ghassany's user avatar
1 vote
1 answer
56 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:...
Sinval's user avatar
  • 1,315
1 vote
1 answer
75 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 ...
eusebe's user avatar
  • 352
1 vote
1 answer
94 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 ...
uzsolt's user avatar
  • 5,832
1 vote
2 answers
200 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 ...
eusebe's user avatar
  • 352
1 vote
0 answers
59 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 ...
JSP's user avatar
  • 33
2 votes
1 answer
47 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 = ...
Eduardo-Uresti's user avatar
1 vote
0 answers
47 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)...
JSP's user avatar
  • 33
1 vote
1 answer
136 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 ...
Joker312's user avatar
1 vote
1 answer
186 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 ...
mkrasmus's user avatar
  • 133
2 votes
1 answer
103 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 ================ ...
Joker312's user avatar
1 vote
1 answer
103 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 ...
sammerk's user avatar
  • 1,143
1 vote
1 answer
129 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 ...
Ricardo Caliari Oliveira's user avatar
1 vote
1 answer
84 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 ...
El Diario de Alvaretto's user avatar
1 vote
1 answer
69 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") ...
El Diario de Alvaretto's user avatar
1 vote
1 answer
79 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 ...
Eduardo-Uresti's user avatar
1 vote
1 answer
92 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 ...
Jeremy Chen's user avatar
  • 1,299
1 vote
1 answer
70 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 ...
El Diario de Alvaretto's user avatar
2 votes
2 answers
208 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( &...
user3229077's user avatar
1 vote
1 answer
65 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 (...
Cristina Miranda's user avatar
1 vote
1 answer
132 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 ...
happycoding678's user avatar
1 vote
1 answer
71 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 ...
Owen J's user avatar
  • 43
1 vote
1 answer
100 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 ...
JSP's user avatar
  • 33
1 vote
1 answer
106 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 ...
RedDotRabbit's user avatar
1 vote
1 answer
142 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 ...
RedDotRabbit's user avatar

1
2 3 4 5 6