View source: R/create_episode.R
create_episode | R Documentation |
These functions allow you to create an episode that will be added to the schedule.
create_episode(
title,
ext = "Rmd",
make_prefix = FALSE,
add = TRUE,
path = ".",
open = rlang::is_interactive()
)
create_episode_md(
title,
make_prefix = FALSE,
add = TRUE,
path = ".",
open = rlang::is_interactive()
)
create_episode_rmd(
title,
make_prefix = FALSE,
add = TRUE,
path = ".",
open = rlang::is_interactive()
)
draft_episode_md(
title,
make_prefix = FALSE,
path = ".",
open = rlang::is_interactive()
)
draft_episode_rmd(
title,
make_prefix = FALSE,
path = ".",
open = rlang::is_interactive()
)
title |
the title of the episode |
ext |
a character. If |
make_prefix |
a logical. When |
add |
(logical or numeric) If numeric, it represents the position the
episode should be added. If |
path |
the path to the |
open |
if interactive, the episode will open in a new editor window. |
tmp <- tempfile()
create_lesson(tmp, open = FALSE, rmd = FALSE)
create_episode_md("getting-started", path = tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.