diff --git a/R/lesson_fragment.R b/R/lesson_fragment.R index 0f71720..1120077 100644 --- a/R/lesson_fragment.R +++ b/R/lesson_fragment.R @@ -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: @@ -19,7 +19,7 @@ #' `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 @@ -27,10 +27,10 @@ #' 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")) } diff --git a/man/lesson_fragment.Rd b/man/lesson_fragment.Rd index cf19080..2f3bb7c 100644 --- a/man/lesson_fragment.Rd +++ b/man/lesson_fragment.Rd @@ -12,7 +12,7 @@ lesson_fragment(name = "lesson-fragment") \item lesson-fragment \item rmd-lesson \item sandpaper-fragment -\item sandpaper-fragment with children +\item sandpaper-fragment with child }} } \value{ @@ -24,7 +24,7 @@ a path to a lesson fragment whose contents are: \code{01-test.Rmd}. \item \code{sandpaper-fragment} contains a trimmed-down Workbench lesson that has its R Markdown content pre-built -\item \code{sandpaper-fragment-with-children} contains much of the same content as +\item \code{sandpaper-fragment-with-child} contains much of the same content as \code{sandpaper-fragment}, but the \code{episodes/index.Rmd} file references child documents. } @@ -40,5 +40,5 @@ lesson lesson_fragment() lesson_fragment("rmd-lesson") lesson_fragment("sandpaper-fragment") -lesson_fragment("sandpaper-fragment-with-children") +lesson_fragment("sandpaper-fragment-with-child") }