get_lesson | R Documentation |
Download and extract a carpentries lesson in XML format. This uses gert::git_clone()
to download a carpentries lesson to your computer (defaults to the temporary
directory and extracts the lesson in _episodes/
using tinkr::to_xml()
get_lesson(lesson = NULL, path = tempdir(), overwrite = FALSE, ...)
lesson |
a github user/repo pattern to point to the lesson |
path |
a directory to write the lesson to |
overwrite |
if the |
... |
arguments passed on to Episode$new(). |
a list of xml objects, one element per episode.
if (interactive()) {
png <- get_lesson("swcarpentry/python-novice-gapminder")
str(png, max.level = 1)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.