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/9b/4gh0pghx1b71jjd0wjh5mj880000gn/T/RtmpPbQ5Xu/temp_libpathe18073bdf724/pipette/extdata.
class(renamed)
#> [1] "character"