save_CSV: Save CSV With Initials and Date

View source: R/save_CSV.R

save_CSVR Documentation

Save CSV With Initials and Date

Description

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

Usage

save_CSV(
  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 "Tables" or "_tables" 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_CSV(object = ls(), filename = "datafile")

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