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/RtmpQSXDNq/file170626db1643...
#>  No schedule set, using Rmd files in episodes/ directory.
#> → Creating Lesson in /tmp/RtmpQSXDNq/file170626db1643...

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

#> ────────────────────────────────────────────────────────────────────────
#> → Creating Lesson in /tmp/RtmpQSXDNq/file170626db1643...

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

#>  Edit /tmp/RtmpQSXDNq/file170626db1643/episodes/introduction.md.
#> → Creating Lesson in /tmp/RtmpQSXDNq/file170626db1643...

#>  First episode created in /tmp/RtmpQSXDNq/file170626db1643/episodes/introduction.md
#> → Creating Lesson in /tmp/RtmpQSXDNq/file170626db1643...

#>  Workflows up-to-date!
#> → Creating Lesson in /tmp/RtmpQSXDNq/file170626db1643...

#>  Lesson successfully created in /tmp/RtmpQSXDNq/file170626db1643
#> → Creating Lesson in /tmp/RtmpQSXDNq/file170626db1643...

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