| use_tutorial | R Documentation |
Creates a new tutorial below inst/tutorials/. Tutorials are interactive R
Markdown documents built with the learnr package. use_tutorial() does
this setup:
Adds learnr to Suggests in DESCRIPTION.
Gitignores inst/tutorials/*.html so you don't accidentally track
rendered tutorials.
Creates a new .Rmd tutorial from a template and, optionally, opens it
for editing.
Adds new .Rmd to .Rbuildignore.
use_tutorial(name, title, open = rlang::is_interactive())
name |
Base for file name to use for new |
title |
The human-facing title of the tutorial. |
open |
Open the newly created file for editing? Happens in RStudio, if
applicable, or via |
The learnr package documentation.
## Not run:
use_tutorial("learn-to-do-stuff", "Learn to do stuff")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.