Umut
Umut

Reputation: 87

R/exams - exams2blackboard no randomization or shuffling

I created a set of num and schoice questions. I double-checked them with exams2html() which gives me the randomization and shuffling of answers I want.

However, when I upload the zip file to the system, I notice that there is no randomization. Code below creates identical 5 questions for both num and schoice questions.

Could you tell what I am doing wrong?

Thank you

Upvotes: 1

Views: 170

Answers (1)

Umut
Umut

Reputation: 87

It turns out the way that I set knitr options with knitr::opts_chunk$set() in a few questions was the problem. Specifically knitr::opts_chunk$set(cache = TRUE) was stopping randomization at the exam level.

I removed all `knitr::opts_chunk$set()' from all files, and move the options that I need to the relevant code chunks. All worked beautifuly.

Thank you so much Achim for finding my mistake!

Upvotes: 1

Related Questions