sourceFile: sourceFile

View source: R/paths.R

sourceFileR Documentation

sourceFile

Description

sourcefile function is a wrapper for source which will later allow some test and feebacks sourceFile source a file from the "scripts" path as set by setPath("scripts","absolute path")

Usage

sourceFile(pathname, filename)

Arguments

pathname

pathname as label

filename

name of the file to source (if it contain a path, this one will be added to the scripts path)

Value

nothing

Examples

file <- tempfile(fileext = ".R")
cat("# comment", file = file, sep = "\n")
setPath("scripts","")
sourceFile("scripts",file)
unlink(file) # tidy up


Epiconcept-Paris/STRAP-epiuf documentation built on Aug. 5, 2024, 3:41 a.m.