Check the lesson structure for errors
1 2 3
the path to your lesson
TRUE (invisibly) if the lesson is cromulent, otherwise, it will
error with a list of things to fix.
1 2 3 4 5 6 7 8 9 10 11 12
# 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.