Run a tutorial which is contained within an R package.
Tutorial name (subdirectory within
Name of package
Additional arguments to forward to
Note that when running a tutorial Rmd file with
the tutorial Rmd should have already been rendered as part of the
development of the package (i.e. the corresponding tutorial .html file for
the .Rmd file must exist).
1 2 3 4 5
# display all "learnr" tutorials available_tutorials("learnr") # run basic example within learnr ## Not run: run_tutorial("hello", "learnr")
Available tutorials: * learnr - ex-data-basics : "Data basics" - ex-data-filter : "Filter observations" - ex-data-mutate : "Create new variables" - ex-data-summarise : "Summarise Tables" - ex-setup-r : "Set Up" - hello : "Hello, Tutorial!" - quiz_question : "Tutorial Quiz Questions in `learnr`" - slidy : "Slidly demo" Warning message: requested TAR '/bin/tar' does not exist; using 'internal' instead
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.