Insert Markdown text to link to a learnr tutorial.
learnr(
id,
title = NULL,
package,
toc = "",
text = "Now let's make the exercises in the following tutorial:",
toc.def = "Tutorial {id}",
rstudio.url = "start_rstudio.html",
tuto.img = "images/list-tuto.png",
tuto.link = "tutorial"
)
Identifier of the learnr tutorial (as tutorial:id
in the YAML
section).
The title of the tutorial (title
in the YAML section). If
NULL
, the id
is used instead.
Package where the learnr tutorial is defined.
Entry to use in the exercises table of content (NULL
if no
entry, ""
for a default entry based on toc.def =
).
The text to display in the learnr block.
Text for a default toc entry using glue()
syntax for
replacement, e.g., {id}
.
The URL to open a page in RStudio server in the SciViews box.
The image to display in front of the toc entry
The link when the image is clicked (sends to an help page about learnr tutorials).
The Markdown chunk to insert a learnr tutorial block in the document.