aoc_init | R Documentation |
This function copies the bundled RMarkdown template into a folder within the (current) path, creating a subfolder for the year if necessary and pre-filling variables
aoc_init(
day,
year = format(Sys.Date(), "%Y"),
path = here::here(),
overwrite = FALSE,
template = Sys.getenv("AOC_TEMPLATE", unset = "default"),
open = Sys.getenv("AOC_OPEN", unset = "true")
)
day |
the day of the puzzle |
year |
year of puzzle, defaults to current year |
path |
path to copy template to, defaults to subfolders of current directory |
overwrite |
overwrite existing file, default to FALSE |
open |
open file for editing, if RStudio is available |
opens the template
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.