check_lesson: deprecated Check the lesson structure for errors

View source: R/check_lesson.R

check_lessonR Documentation

deprecated Check the lesson structure for errors

Description

This function is now deprecated in favour of validate_lesson().

Usage

check_lesson(path = ".")

Arguments

path

the path to your lesson

Value

TRUE (invisibly) if the lesson is cromulent, otherwise, it will error with a list of things to fix.

Examples


# Everything should work out of the box
tmp <- tempfile()
create_lesson(tmp, open = FALSE, rmd = FALSE)
check_lesson(tmp)

# if things do not work, then an error is thrown with information about
# what has failed you
unlink(file.path(tmp, ".gitignore"))
unlink(file.path(tmp, "site"), recursive = TRUE)
try(check_lesson(tmp))

unlink(tmp)

zkamvar/sandpaper documentation built on April 21, 2024, 1:17 a.m.