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/l1/8y8sjzmn15v49jgrqglghcfr0000gn/T/RtmpAraQSl/temp_libpath4e036075b00f/pipette/extdata.
class(renamed)
#> [1] "character"