Learn R Programming

represtools (version 0.1.3)

LoadObjects: LoadObjects

Description

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

Usage

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

Run this code
# NOT RUN {
loadedObjects <- LoadObjects(params)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab