load_Rdata: Function to safely load Rdata files.

Description Usage Arguments Value

View source: R/load_Rdata.R

Description

The load() function loads the objects stored in the Rdata file directly into the environment, which can write over existing objects. This function allows the objects to be assigned to a list variable. Since Rdata files are now largely replaced by the safer RDS format, this is essentially a back-compatibility mechanism.

Usage

1

Arguments

file

string file path to .Rdata object.

Value

a list containing all objects contained in Rdata file.


danwkenn/ConsulR documentation built on Dec. 19, 2021, 8:11 p.m.