Delay-load an RDS file

Usage

read_rds(..., assign.env = parent.frame())

Arguments

...
Paths to RDS files.
assign.env
The environment in which to create the delayed assignments.

Description

This function creates one or more delayed assignments that load RDS files (via readRDS). For unnamed arguments, names are derived from the basename of the RDS files. Paths are normalized (via normalizePath); a warning is thrown if the file does not exist.

Examples

## Not run: # # Creates a delayed assignment "fortytwo" which loads the file # # "extdata/fortytwo.rds" # read_rds(fortytwo = system.file("extdata", "fortytwo.rds")) # ## End(Not run)