Skip to contents

Get the configuration parameters for the lesson

Usage

get_config(path = ".")

Arguments

path

path to the lesson

Value

a yaml list

Examples

tmp <- tempfile()
create_lesson(tmp, open = FALSE, rmd = FALSE)
#> → Creating Lesson in /tmp/RtmpF04t24/file1835515eff94...
#>  No schedule set, using Rmd files in episodes/ directory.
#> → Creating Lesson in /tmp/RtmpF04t24/file1835515eff94...

#> To remove this message, define your schedule in config.yaml or use `set_episodes()` to generate it.
#> → Creating Lesson in /tmp/RtmpF04t24/file1835515eff94...

#> ────────────────────────────────────────────────────────────────────────
#> → Creating Lesson in /tmp/RtmpF04t24/file1835515eff94...

#>  To save this configuration, use
#> 
#> set_episodes(path = path, order = ep, write = TRUE)
#> → Creating Lesson in /tmp/RtmpF04t24/file1835515eff94...

#>  Edit '/tmp/RtmpF04t24/file1835515eff94/episodes/introduction.md'
#>  First episode created in /tmp/RtmpF04t24/file1835515eff94/episodes/introduction.md
#> → Creating Lesson in /tmp/RtmpF04t24/file1835515eff94...

#>  Workflows up-to-date!
#> → Creating Lesson in /tmp/RtmpF04t24/file1835515eff94...

#>  Lesson successfully created in /tmp/RtmpF04t24/file1835515eff94
#> → Creating Lesson in /tmp/RtmpF04t24/file1835515eff94...

#> /tmp/RtmpF04t24/file1835515eff94
get_config(tmp)
#> $carpentry
#> [1] "incubator"
#> 
#> $title
#> [1] "Lesson Title"
#> 
#> $created
#> [1] "2024-03-21"
#> 
#> $keywords
#> [1] "software, data, lesson, The Carpentries"
#> 
#> $life_cycle
#> [1] "pre-alpha"
#> 
#> $license
#> [1] "CC-BY 4.0"
#> 
#> $source
#> [1] "https://github.com/carpentries/file1835515eff94"
#> 
#> $branch
#> [1] "main"
#> 
#> $contact
#> [1] "team@carpentries.org"
#> 
#> $episodes
#> [1] "introduction.md"
#> 
#> $learners
#> NULL
#> 
#> $instructors
#> NULL
#> 
#> $profiles
#> NULL
#>