save_RDS: Save RDS With Initials and Date

View source: R/save_RDS.R

save_RDSR Documentation

Save RDS With Initials and Date

Description

This function appends the user's initials and the current date when saving to RDS.

Usage

save_RDS(
  object,
  filename,
  path = NULL,
  initials = Sys.getenv("UNLIKELY_INITIALS"),
  verbose = FALSE
)

Arguments

object

The object in the R environment to save to a file.

filename

String. The base name for the file.

path

String. Where to save the file. If not set, checks for "Data" or "_data" in the working directory. Saves to working directory if data folders are not found.

initials

String, or empty to retrieve from .Renviron.

verbose

Logical. Should status messages be displayed?

Examples

## Not run: save_initials("DA")
## Not run: save_RDS(object = ls(), filename = "datafile")

UnlikelyVolcano/UnlikelyTools documentation built on March 2, 2024, 4:43 a.m.