R/include.R

Defines functions include

Documented in include

#' Include R script file
#'
#' Include R script with behaviour similar to C++ \code{#include
#' "header.h"}, by searching in the directory where the 
#' current script file resides.
#'
#' @param file name
#' @export
include <- function(file) {
	source(file, local=parent.frame())
}

Try the argparser package in your browser

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

argparser documentation built on March 8, 2021, 9:07 a.m.