R/check_outfile.R

Defines functions check_outfile

check_outfile <- function(file) {
  if (length(file) != 1) {
    stop("Output filepath must be of length one and not NULL")
  }

  if (!is.character(file)) {
    stop("Output filepath must be of type character")
  }
}

Try the cmsafops package in your browser

Any scripts or data that you put into this service are public.

cmsafops documentation built on Sept. 18, 2023, 5:16 p.m.