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".
Questions tagged [r-exams]
256 questions
0
votes
0 answers
How do I export a R/exams question with a tikzpicture to moodle?
I'm using the Template logic: Interpretation of Logic Gates (Using TikZ) but I get the following error when I tried to export do moodle:
exams2moodle('logic.Rnw',name='TEST')
Erro: chunk 2
Error in magick_image_readpath(path, density, depth,…

Marcos Vinicius
- 151
- 1
- 10
0
votes
1 answer
Warning message in R environment of Sweave file
I keep having the warning message when I execute the following chunk of code. How that could be fixed?
<>=
include_supplement("data.txt")
data <- read.table("data.txt",…

Akram
- 355
- 1
- 10
0
votes
1 answer
Including LaTeX packages in R/exams Rnw exercises
I would like to know, if possible, how to include other "simple" (I know it is a relative concept) LaTeX packages in my Rnw exercises for R/exams. I just want to use bbfonts. I can't define any new command as well. There is one question related to…

Alexandre Lymberopoulos
- 61
- 1
- 3
0
votes
1 answer
Generate html or docx answer key for schoice or mchoice questions
For proofreading purposes, to circulate a draft to a teaching assistant, I would like to generate an answer key. I generate draft exams using either exams2html() or exams2pandoc(), but these don't have a key. I looked at the arguments for these two…

ncraig
- 783
- 1
- 10
- 23
0
votes
1 answer
MCQ marking: How can I best compare a vector of "responses" dataframe to row elements of an "answers" element-by-element?
(R, dplyr) I'm trying input student MCQ answers, and correct answers, and compute marks; many questions have multiple answers. I've input the mark-sheet answers (ms) and student responses (sr) as dataframes; column vectors are lists. (Update:…

daaronr
- 507
- 1
- 4
- 12
0
votes
1 answer
Using R's exams package for assignments: Is it possible to add question hints?
The exams package is a really fantastic tool for generating exams from R.
I am interested in the possibilities of using it for (programming) assignments. The main difference from an exam is that besides solutions I'd also like hints to be included…

pcs
- 13
- 4
0
votes
1 answer
Multiple Plots in `exams2nops()`
I try to use more than one question with (gg)plots in an R-exam using exams2nops().
However, the first plot seems to be cached and displayed instead of all further plots, too.
Edit:
with "more than one question" I meant an exam with several…

sammerk
- 1,143
- 1
- 9
- 23
0
votes
1 answer
How do I handle randomly selected graphics files in R exams for export to qti and moodle?
I have a spreadsheet of exam questions that I want to use to generate quizzes and exams using R exams, and I'd like to include graphics in some of the questions.
The template here (http://www.r-exams.org/templates/fruit/) begins by defining the…

user1521655
- 486
- 3
- 17
0
votes
1 answer
plot appears in html exam, but not in pdf version
I have a problem with the following Rmd to be used with the exams R package. it works for html, but not for pdf and i can't figure out why. I get the plot with 2 panels in html, but it's just missing in teh pdf. thanks!
```{r data generation, echo =…

Florian Oswald
- 5,054
- 5
- 30
- 38
0
votes
1 answer
cloze question does not display questions?
I'm having trouble writing a cloze question with the exams package in R. I tried to stick close to the boxhist.Rmd example, but something must be wrong. the weird thing is that knitting the Rmd in rstudio displays all components ok - it's just that…

Florian Oswald
- 5,054
- 5
- 30
- 38
0
votes
1 answer
Flash cards for ARSnova system
I recently discovered the Audience Response System ARSnova and you can use the r package exams to export quizzes to this platform. Since this platform also has flashcards, I want to know if there is a way to export flashcards to ARSnova from R.…

Alfredo Sánchez
- 725
- 1
- 7
- 19
0
votes
0 answers
Allow more html in moodle and html exams
I want to have more html in exams generated by exams2html()and exams2moodle. But if I try e.g. to include a ploty plot by
```
library(ggplot2)
library(plotly)
ggplotly(
ggplot(iris, aes(Sepal.Length, Petal.Length)) +…

sammerk
- 1,143
- 1
- 9
- 23
0
votes
3 answers
Count Down Timer Issue
I am creating a timed testing product in PHP. I am facing a problem in keeping the exam time properly. When the exam is started, and as long as I am in the same screen, the timer is working properly. But when I open other screens while the test is…

nani0077
- 119
- 14
-1
votes
1 answer
Equal width numerical and string answer in cloze questions?
In the great R-exams package can specify the numerical answers width in cloze questions with \exextra[numwidth,logical]{TRUE}.
I want create exams with mixed type cloze, for example num|num|string (solve an equation and don't know how many solutions…

uzsolt
- 5,832
- 2
- 20
- 32
-2
votes
1 answer
Python selenium: iterate through radio buttons that have dynamic values for multiple choice exam
I've been struggling with this issue for quite some time now. Basically I want to automate a multiple choice test with 60 questions that has 4 radio types per question. The ID is static ;however the value changes for each option. I have coded a loop…

Trev93
- 1
- 1