knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
An example package for tutorials delivered through R
Tutorials are stored in the inst/tutorials directory. The emptyTutorial directory can be copied and ammended to create a new tutorial.
Students can install the current version from GitHub with:
# install.packages("devtools") devtools::install_github("Avery-Lisa/LearnRTutorial")
List all the tutorials in the package
#intall.packages('learnr') learnr::available_tutorials(package = 'LearnRTutorial')
This is how the tutorials are run from within RStudio
library(LearnRTutorial) learnr::run_tutorial("LecturingWithLearnR", "LearnRTutorial")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.