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

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.

Value

Character vector containing the names of loaded objects.

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.

Examples

if (FALSE) { loadedObjects <- LoadObjects(params) }