knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" ) library(teachr)
An R package to aid teaching of introduction to R
You can install the development version of teachr from GitHub with:
# install.packages("devtools") devtools::install_github("numbats/teachr")
`r ''````{teachr substitute} z <- mean(<<1:5>>) z --- Hint: Add a vector inside mean() ??? expect_identical(z, 3) ```
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.