R/local-path.R

Defines functions stop_local_overwrite

# stop overwriting
stop_local_overwrite <- function(overwrite, x) {
  if (isFALSE(overwrite) && file.exists(x)) {
    stop(
      "Local file aready exists.",
      " Set `overwrite = TRUE` to explicitly overwrite the file.",
      call. = FALSE
    )
  }
}

Try the rirods package in your browser

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

rirods documentation built on June 22, 2024, 11:55 a.m.