scandal_load_data: Loads an RDS file from the file system

Description Usage Arguments Details Value Author(s)

View source: R/utils.R

Description

Loads an RDS file from the file system, possibly from a specified sub-directory.

Usage

1
2
3
4
5
6
7
scandal_load_data(
  filename,
  dirname = ".",
  project_dir = ".",
  data_dir = "data",
  verbose = FALSE
)

Arguments

filename

the name of the file **without .RDS suffix**.

dirname

a sub-directory from which the object will be loaded. Default is ".", meaning no sub-directory will be used.

project_dir

the root directory of the current project to which all data files are saved. Default is NULL meaning that the files will be loaded from the working directory.

data_dir

a subdirectory in project_dir to which all data files are saved. Default is "data".

verbose

suppresses all messages from this function. Default is FALSE.

Details

Loads an RDS file from the file system, possibly from a specified sub-directory.

Value

Returns the data object which was loaded from the RDS file.

Author(s)

Avishay Spitzer


dravishays/scandal documentation built on Jan. 8, 2020, 1:30 p.m.