README.md

Package Information

Lifecycle:
experimental CRAN
status

An example package for tutorials delivered through R

Folder Structure

Tutorials are stored in the inst/tutorials directory. The emptyTutorial directory can be copied and ammended to create a new tutorial.

Installation

Students can install the current version from GitHub with:

# install.packages("devtools")
devtools::install_github("Avery-Lisa/LearnRTutorial")

Example

List all the tutorials in the package

#intall.packages('learnr')
learnr::available_tutorials(package = 'LearnRTutorial')
#> Available tutorials:
#> * LearnRTutorial
#>   - emptyTutorial       : "A New Tutorial"
#>   - LecturingWithLearnR : "Using the learnr Package"

This is how the tutorials are run from within RStudio

library(LearnRTutorial)
learnr::run_tutorial("LecturingWithLearnR", "LearnRTutorial")


Avery-Lisa/LearnRTutorial documentation built on March 23, 2022, 12:03 a.m.