inst/doc/exams2forms.R

## ----setup--------------------------------------------------------------------
library("exams2forms")
set.seed(403)
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "##",
  message = FALSE,
  warning = FALSE,
  echo = TRUE
)

## ----first-steps--------------------------------------------------------------
library("exams2forms")
exams2forms(c("swisscapital.Rmd", "deriv.Rmd"), n = 3)

## ----first-steps-webquiz------------------------------------------------------
# library("exams2forms")
# exams2webquiz(c("swisscapital.Rmd", "deriv.Rmd"), n = 3)

## ----more-examples------------------------------------------------------------
exams2forms(c("capitals.Rmd", "function.Rmd", "fruit.Rmd", "lm2.Rmd"))

## ----more-examples-webquiz----------------------------------------------------
# exams2webquiz(c("capitals.Rmd", "function.Rmd", "fruit.Rmd", "lm2.Rmd"))

## ----eval=TRUE, echo=FALSE, results="asis"------------------------------------
writeLines(paste0("    ", readLines(
  system.file("forms", "quiz.Rmd", package = "exams2forms")
)))

Try the exams2forms package in your browser

Any scripts or data that you put into this service are public.

exams2forms documentation built on May 9, 2025, 3 a.m.