lesson_fragment: Example Lesson Fragments

View source: R/lesson_fragment.R

lesson_fragmentR Documentation

Example Lesson Fragments

Description

Partial lessons mainly used for testing and demonstration purposes

Usage

lesson_fragment(name = "lesson-fragment")

Arguments

name

the name of the lesson fragment. Can be one of:

  • lesson-fragment

  • rmd-lesson

  • sandpaper-fragment

  • sandpaper-fragment with child

Value

a path to a lesson fragment whose contents are:

  • lesson-fragment contains one ⁠_episodes⁠ directory with three files: "10-lunch.md", "14-looping-data-sets.md", and "17-scope.md"

  • rmd-fragment contains one episode under ⁠_episodes_rmd⁠ called 01-test.Rmd.

  • sandpaper-fragment contains a trimmed-down Workbench lesson that has its R Markdown content pre-built

  • sandpaper-fragment-with-child contains much of the same content as sandpaper-fragment, but the episodes/index.Rmd file references child documents.

Note

The lesson-fragment example was taken from the python novice gapminder lesson

Examples

lesson_fragment()
lesson_fragment("rmd-lesson")
lesson_fragment("sandpaper-fragment")
lesson_fragment("sandpaper-fragment-with-child")

carpentries/pegboard documentation built on Nov. 13, 2024, 8:53 a.m.