#' @name CheckProjectDirectory
#' @author Ricardo Vladimiro
#' @title Checks if the project directory exists in the working directory and throws an error if it doesn't.
CheckProjectDirectory <- function() {
if(!"./project" %in% list.dirs(recursive = FALSE)) {
stop(paste(
"Project directory not found.",
"Run CreateProjectStructure() to create the project's structure.",
"Optionally, create the project directory manually."
))
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.