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 May 29, 2024, 4:06 a.m.