Last data update: 2014.03.03
|
R: Evaluate R Code from a File
sourceFile | R Documentation |
Evaluate R Code from a File
Description
Evaluate R code from a file within a local environment and return
a list of objects of interest.
Usage
sourceFile(filename, modelNames)
Arguments
filename |
The name of a file containing R code.
|
modelNames |
The names of objects of interest that should be
generated by the R code in the file and that we want returned.
|
Value
A list containing one component for each name in modelNames .
Author(s)
Paul Murrell
See Also
compareFile
Examples
modelNames <- c("id", "age",
"edu", "class",
"IndianMothers")
sourceFile(system.file("example", "student1.R", package="compare"),
modelNames)
Results
|