r.reader: Read an R source file with a .R file extension.

Description Usage Arguments Value Examples

View source: R/r.reader.R

Description

This function will call source on the specified R file, executing the code inside of it as a way of generating data sets dynamically, as in many Monte Carlo applications.

Usage

1
r.reader(data.file, filename, variable.name)

Arguments

data.file

The name of the data file to be read.

filename

The path to the data set to be loaded.

variable.name

The name to be assigned to in the global environment.

Value

No value is returned; this function is called for its side effects.

Examples

1
2
3
library('ProjectTemplate2')

## Not run: r.reader('example.R', 'data/example.R', 'example')

connectedblue/ProjectTemplate2 documentation built on May 17, 2019, 2:46 p.m.