#' Check if a file exists.
#'
#' Check if a file exists.
#' \link{stop} otherwise.
#' @inheritParams default_params_doc
#' @return TRUE if MHCnuggets is installed
#' @author Richèl J.C. Bilderbeek
#' @export
check_file_exists <- function(filename) {
if (!file.exists(filename)) {
stop("File not found. Filename: ", filename)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.