Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
zkamvar committed Nov 17, 2023
1 parent 14e38d6 commit 8bbc257
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions R/lesson_fragment.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#' - lesson-fragment
#' - rmd-lesson
#' - sandpaper-fragment
#' - sandpaper-fragment with children
#' - sandpaper-fragment with child
#'
#' @return a path to a lesson fragment whose contents are:
#' - `lesson-fragment` contains one `_episodes` directory with three files:
Expand All @@ -19,18 +19,18 @@
#' `01-test.Rmd`.
#' - `sandpaper-fragment` contains a trimmed-down Workbench lesson that
#' has its R Markdown content pre-built
#' - `sandpaper-fragment-with-children` contains much of the same content as
#' - `sandpaper-fragment-with-child` contains much of the same content as
#' `sandpaper-fragment`, but the `episodes/index.Rmd` file references child
#' documents.
#' @export
#' @examples
#' lesson_fragment()
#' lesson_fragment("rmd-lesson")
#' lesson_fragment("sandpaper-fragment")
#' lesson_fragment("sandpaper-fragment-with-children")
#' lesson_fragment("sandpaper-fragment-with-child")
lesson_fragment <- function(name = "lesson-fragment") {
allowed <- c("lesson-fragment", "rmd-lesson",
"sandpaper-fragment", "sandpaper-fragment-with-children")
"sandpaper-fragment", "sandpaper-fragment-with-child")
name <- match.arg(name, allowed)
return(system.file(name, package = "pegboard"))
}
6 changes: 3 additions & 3 deletions man/lesson_fragment.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8bbc257

Please sign in to comment.