file_management: Saving to and loading from the file system

Description Usage Arguments Examples

Description

Saving to and loading from the file system

Usage

1
2
3
obj_save(file_name = "", obj_name = "", data_dir = file.path("data"))

obj_load(file_name = "", obj_name = "", data_dir = file.path("data"))

Arguments

file_name

A character string file name.

obj_name

A character string referring to an object.

data_dir

A path to a system folder.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# Write object to file system
samples_frm <- data.table::fread("path_to_raw_data_file")
obj_save('thisProject_samples_frm', 'samples_frm', data_dir='data')

# load object from file system
obj_load('thisProject_samples_frm', 'samples_frm', data_dir='data')
head(samples_frm)
...

## End(Not run)

12379Monty/omicScaleR documentation built on Aug. 13, 2020, 12:25 a.m.