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, nsamp = 1, encoding = "UTF-8", blank = 0, nchoice = 6, duplex = T, reglength = 5L, points = 4, replacement = T,schoice = list(eval = ee))
And the exercise *.rmd
:
```{r}
df <- readRDS(file = "some.rds")
variable <- names(df[,4:7]) %>% sample(1)
measCT<- ifelse(variable==names(df)[4],"Mean",
ifelse(variable==names(df)[5],"Mean",
ifelse(variable==names(df)[6],"Median",
ifelse(variable==names(df)[7],"Median",NaN))))
measuresTC <- c("Mode", "Percentile 25", "Percentile 75", "Median", "Mean", "Geometric mean")
options_answers <- paste0(c(measCT,measuresTC[!measuresTC %in% measCT]))
solutions <- c(T,F,F,F,F,F)
```
Question
========
`r paste0("Some question about the ", variable)`
```{r questionlist, echo = FALSE, results = "asis"}
exams::answerlist(unlist(options_answers), markup = "markdown")
```
Meta-information
================
exname: 1_1
extype: schoice
exsolution: `r paste(solutions, collapse = "|")`
exshuffle: 4
The produced pdf always presents four options...