Code
set_config(list(title = "test: title", license = "CC0"), path = tmp)
Message
- title: 'Lesson Title'
+ title: 'test: title'
- license: 'CC-BY 4.0'
+ license: 'CC0'
--------------------------------------------------------------------------------
i To save this configuration, use
set_config(pairs = list(title = "test: title", license = "CC0"), path = tmp, write = TRUE)
Code
set_config(c(title = "test: title", license = "CC0"), path = tmp, write = TRUE)
Message
i Writing to '[redacted]/lesson-example/config.yaml'
> title: 'Lesson Title' -> title: 'test: title'
> license: 'CC-BY 4.0' -> license: 'CC0'
Code
set_config(c(title = "test: title", license = "CC0"), path = tmp, write = TRUE)
Message
[36mi[39m Writing to [34m[34m[redacted]/lesson-example/config.yaml[34m[39m
> title: 'Lesson Title' -> title: 'test: title'
> license: 'CC-BY 4.0' -> license: 'CC0'
Code
set_config(c(title = "test: title", license = "CC0"), path = tmp, write = TRUE)
Message
ℹ Writing to '[redacted]/lesson-example/config.yaml'
→ title: 'Lesson Title' -> title: 'test: title'
→ license: 'CC-BY 4.0' -> license: 'CC0'
Code
set_config(c(title = "test: title", license = "CC0"), path = tmp, write = TRUE)
Message
[36mℹ[39m Writing to [34m[34m[redacted]/lesson-example/config.yaml[34m[39m
→ title: 'Lesson Title' -> title: 'test: title'
→ license: 'CC-BY 4.0' -> license: 'CC0'
`set_config()`: Unknown keys
Code
set_config(c(`test-key` = "hey!"), path = tmp, write = TRUE, create = TRUE)
Message
i Writing to '[redacted]/lesson-example/config.yaml'
> NA -> test-key: 'hey!'
Code
set_config(c(`test-key` = "!yeh"), path = tmp, write = TRUE)
Message
i Writing to '[redacted]/lesson-example/config.yaml'
> test-key: 'hey!' -> test-key: '!yeh'
Code
s <- get_episodes(tmp)
Message
i No schedule set, using Rmd files in 'episodes/' directory.
> To remove this message, define your schedule in 'config.yaml' or use `set_episodes()` to generate it.
Code
set_episodes(tmp, s[1])
Message
episodes:
- introduction.Rmd
-- Removed episodes ------------------------------------------------------------
- new.Rmd
--------------------------------------------------------------------------------
i To save this configuration, use
set_episodes(path = tmp, order = s[1], write = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.