R/check_file_exists.R

Defines functions check_file_exists

Documented in check_file_exists

#' 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)
  }

}
richelbilderbeek/mhcnuggetsr documentation built on Nov. 9, 2023, 10 p.m.