File: include.R

package info (click to toggle)
r-cran-argparser 0.7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 260 kB
  • sloc: sh: 13; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 282 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
#' 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())
}