read_rds(..., assign.env = parent.frame())
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.
## 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)