Load data as name

loadDataAsName(..., dir = getOption("acid.load.dir", default = "."),
  envir = globalenv(), overwrite = getOption("acid.overwrite", default
  = TRUE))

Arguments

...

Key value pairs, defining the name mappings. For example, newName1 = oldName1, newName2 = oldName2. Note that these arguments are interpreted using non-standard evaluation, and should not be quoted.

dir

character(1). Directory path.

envir

environment. Environment.

overwrite

logical(1). Overwrite existing file on disk.

Value

Invisible named character. File paths.

Note

This function is intended for interactive use and interprets object names using non-standard evaluation.

Updated 2019-07-30.

Examples

dir <- system.file("extdata", package = "brio") loadDataAsName(renamed = example, dir = dir)
#> Loading example.rds from /Users/mike/R/x86_64-apple-darwin15.6.0-library/3.6/brio/extdata.
class(renamed)
#> [1] "character"