LoadObjects: LoadObjects

Description Usage Arguments Details Value Examples

View source: R/Objects.R

Description

This function will load a set of objects stored in .rda files. By default, objects are loaded into the Global environment.

Usage

1
LoadObjects(params, env = .GlobalEnv, loadFiles)

Arguments

params

A list of parameters. Should include the named items inputDir and inputFiles.

env

An environment in which to load objects. Defaults to the global environment.

loadFiles

A character vector of files containing saved data.

Details

The params object is defined within an RMarkdown file and contains named items "inputDir" and "inputFiles". As an expedient, one may pass a vector of filenames. This vector will only be used if the params argument has been omitted.

Value

Character vector containing the names of loaded objects.

Examples

1
2
3
4
## Not run: 
loadedObjects <- LoadObjects(params)

## End(Not run)

PirateGrunt/represtools documentation built on Oct. 5, 2019, 6:37 a.m.