Wraps save. If the file already exists, it will not be overwritten. A message will be printed indicating whether the file was successfully written or if it already existed.

save_safely(..., file = stop("'file' must be specified"))

Arguments

...

Data frame(s), other object(s), and further arguments, passed on to save. Required.

file

Path/file name to for output. Required.

Value

None.

Examples

if (FALSE) {
data(mtcars)
mtcars %>%
  save_safely(file = "dataset.RData")
}