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
13
votes
4 answers

Personalizing Online Assignments for a Statistics Class

I teach undergraduate statistics, and am interested in administering personalized online assignments. I have already solved one portion of the puzzle, the generation of multiple version of a question using latex/markdown + knitr/sweave, using seeds.…
Ramnath
  • 54,439
  • 16
  • 125
  • 152
6
votes
1 answer

R/exams: Open-ended questions with exams2moodle

My goal is to create a question using R/exams and Moodle including a few plots generated in the Rmd exercise file. The students should describe the plots verbally and then the exercise is graded manually. Is it possible to use exams2moodle to create…
JP_1235
  • 63
  • 4
5
votes
3 answers

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 argument/option in R/exam or other packages that could…
HiMifeng
  • 61
  • 4
5
votes
1 answer

How to add existing images to R-exams questions

In RMarkdown I usually use somewhat like ```{r} knitr::include_graphics("myimage.png") ``` to add already existing images to the output, but this doesn't work via exams2xyz(). fig.path = "", fig.caption = "" does not fix the problem. The classic …
sammerk
  • 1,143
  • 1
  • 9
  • 23
5
votes
2 answers

How to use R package exams with portuguese accents?

When I'm using the package exams to generate questions, I can do it perfectly in english even with special characters. For example, a Rnw question that I can compile with exams package: <>= ## DATA GENERATION P <-…
Flavio Barros
  • 996
  • 1
  • 11
  • 29
4
votes
1 answer

Different types of tasks in a single R/exams exercise

In some questions, I need to include the different types of tasks or sub-items, e.g., multiple-choice and numeric, in a single exercise. Is this possible in R/exams? In the example below, assume that Part A and Part B are the tasks and must be…
Akram
  • 355
  • 1
  • 10
4
votes
1 answer

Is it possible to add more than four answer options to exams2nops exams?

Is it possible to have more than 4 answer options on exams2nops exams? I tried to set the option nchoice = 6 but it did not produce any effect. I have 6 answer options in the correspondent *.rmd exercise. One example: exams2nops(questions, n = 1,…
Sinval
  • 1,315
  • 1
  • 16
  • 25
4
votes
1 answer

How to grade exams/questions manually?

What I'd like to do: I would like to use r-exams in the following procedure: Providing electronic exams in pdf format to students (using exams2pdf(..) Let the students upload excel file with their answers Grade the answers using (using…
Sebastian Sauer
  • 1,555
  • 15
  • 24
4
votes
1 answer

How do I change the decimal separator in r-exams question to comma?

I'm trying to display a comma as the decimal separator in the questions that I'm creating with the "r-exams/sweave". However, I can't load the siunitx package or do any other configuration that allows this change. I intend to export the question to…
Marcos Vinicius
  • 151
  • 1
  • 10
4
votes
1 answer

Is there support for ggplot2 in the exams package?

I have been trying to create an exam question in r markdown for the exams package that includes a ggplot2 plot. Here is a reprex: ```{r} library(ggplot2) library(tibble) x <- data_frame(x = rnorm(100, 50, 25), y = x + rnorm(100, 0,…
Tamas Nagy
  • 1,001
  • 12
  • 22
3
votes
1 answer

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("exercises/")) exams2nops(file = myexam, n =…
Ghassany
  • 45
  • 5
3
votes
2 answers

custom intro using exams2pdf

We are using the following setup to include a customized intro to our printed exams: rmarkdown::render(input = "Intro.Rmd",output_file ="Intro.pdf") quests <- unlist(Grupos[c(1:3,sample(c(4:7)))]) exams2nops(file=quests, n=1, nsamp = 1, intro =…
JPMD
  • 644
  • 1
  • 7
  • 19
3
votes
1 answer

Using R/Markdown fails inside learnr question

Motivation: I want to write an interface that uses questions from the R package exams in learnr questions/quizzes. In R/exams each question is either an R/Markdown (Rmd) or R/LaTeX (Rnw) file with a certain structure specifying question, solution,…
Achim Zeileis
  • 15,710
  • 1
  • 39
  • 49
3
votes
1 answer

Is it possible to analyze items' performance from different exams using the same questions but with a different order in each version?

We produced five exams2nops exams using the same groups of items, with randomized order. All of them were schoice items. As such, five different *.rds files were obtained, each of them will be used with the correspondent scanned exams. I noticed…
Sinval
  • 1,315
  • 1
  • 16
  • 25
3
votes
2 answers

Fill initial student IDs with zeros in R/exams exams2nops()

When using the exams package to produce PDF files for NOPS exams I want to edit the number of digits that are available to my students (reglength). I am aware that the package only admits a minimum of 7 digits. However, our students only have 5…
Sinval
  • 1,315
  • 1
  • 16
  • 25
1
2 3
17 18