load_obj: Load an R object from a file

View source: R/utils_file_io.R

load_objR Documentation

Load an R object from a file

Description

This function loads an R object from a file into the global environment or a new environment.

Usage

load_obj(file)

Arguments

file

character A character string specifying the file path.

Value

The loaded R object.

See Also

Other file IO: col_types(), dep_read(), dep_write(), dir_fn(), dirs, ext(), file_fn(), is_filepath(), last_updated(), list.files2(), make_names(), mkpath(), move_files_to_folder(), needs_update(), object_fn(), object_write(), package_size(), write_dir_fn(), write_lines()

Examples

# Load an R object from a file
obj <- load_obj("path/to/file.RData")


yogat3ch/UU documentation built on May 31, 2024, 10:14 p.m.