check_lesson | R Documentation |
This function is now deprecated in favour of validate_lesson()
.
check_lesson(path = ".")
path |
the path to your lesson |
TRUE
(invisibly) if the lesson is cromulent, otherwise, it will
error with a list of things to fix.
# Everything should work out of the box tmp <- tempfile() create_lesson(tmp, open = 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.