#' @include lists.R
PREPS$namespace <- function(state, path = state$path, quiet) {
path <- normalizePath(path)
state$namespace <- try(parseNamespaceFile(
basename(path),
file.path(path, "..")
), silent = quiet)
if(inherits(state$namespace, "try-error")) {
warning("Prep step for namespace failed.")
}
state
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.