View source: R/create_lesson.R
create_lesson | R Documentation |
This will create a boilerplate directory structure for a Carpentries lesson and initialize a git repository.
create_lesson( path, name = fs::path_file(path), rmd = TRUE, rstudio = rstudioapi::isAvailable(), open = rlang::is_interactive() )
path |
the path to the new lesson folder |
name |
the name of the lesson. If not provided, the folder name will be used. |
rmd |
logical indicator if the lesson should use R Markdown ( |
rstudio |
create an RStudio project (defaults to if RStudio exits) |
open |
if interactive, the lesson will open in a new editor window. |
the path to the new lesson
tmp <- tempfile() on.exit(unlink(tmp)) lsn <- create_lesson(tmp, name = "This Lesson", open = FALSE) lsn
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.