pkgdown/assets/snippets/questionmath.md

{r math, echo=FALSE} x <- 42 question(sprintf("Suppose $x = %s$. Choose the correct statement:", x), answer(sprintf("$\\sqrt{x} = %d$", x + 1)), answer(sprintf("$x ^ 2 = %d$", x^2), correct = TRUE), answer("$\\sin x = 1$") )



rstudio/learnr documentation built on Sept. 6, 2024, 11:06 p.m.