Load data as name
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.
Note
This function is intended for interactive use and interprets object names using non-standard evaluation.
Updated 2023-06-29.
Examples
dir <- system.file("extdata", package = "pipette")
loadDataAsName(renamed = example, dir = dir)
#> → Loading example.rds from /private/var/folders/pt/1g5629f1699dfjwdfh32q50m0000gn/T/RtmpeLKj2J/temp_libpath257c2b1a5165/pipette/extdata.
class(renamed)
#> [1] "character"