read_RDS_to_global.Rd
The function provides convenience mechanism for creating R objects corresponding to names of RDS files.
read_RDS_to_global(file_path, verbose = TRUE, pos = 1)
file_path | Path to the RDS file. |
---|---|
verbose | A logical, if |
pos | defaults to 1 which equals an assignment to global environment |
A R object corresponding to basename
on file_path
argument.
For instance, when executing
saved_data <- readRDS("file_path_to/saved_data.RDS")
we may do
read_RDS_to_global("file_path_to/saved_data.RDS")
.