R/stop_if_e.R

Defines functions stop_if_e

Documented in stop_if_e

#' stop_if_e
#'
#' @param file
#'
#' @return
#' @export
#'
#' @examples
stop_if_e <- function(file) {
  if (file.exists(file)) {
    stop(sprintf("file (%s) already exists", file))
  }
}
epongpipat/eepR documentation built on June 5, 2024, 10:03 a.m.