R/r.reader.R

Defines functions r.reader

Documented in r.reader

#' @describeIn preinstalled.readers Read an R source file with a \code{.R} file extension.
#'
#' 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.
r.reader <- function(data.file, filename, variable.name)
{
  source(filename)
}

Try the ProjectTemplate package in your browser

Any scripts or data that you put into this service are public.

ProjectTemplate documentation built on July 4, 2024, 1:10 a.m.