#' Stop if the directory does not exist
#' @export
stop_if_dir_not_exist <-
function(path_to_local_repo = NULL) {
if (is.null(path_to_local_repo)) {
path_to_local_repo <- getwd()
}
if (!(dir.exists(path_to_local_repo))) {
stop(path_to_local_repo, " doesn't exist")
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.