R/sourceProjScript.R

Defines functions sourceProjScript

Documented in sourceProjScript

#' Sources a file path within the project
#'
#' Adaptation to the \code{file.path} function to inlclude the project parent directory file path.
#' Construct the path to a file from components in a platform-independent way.
#'
#' @param root the name of the root project directory
#' @param ... character vectors
#' @param fsep the path separator to use
#'
#' @author Mikey Harper, \email{m.harper@@soton.ac.uk}
#' @export
#'
sourceProjScript <- function(root , ..., fsep = .Platform$file.sep){

  source(projFilePath(root , ..., fsep = .Platform$file.sep))

}
mikey-harper/HarpR documentation built on Nov. 9, 2019, 8:04 p.m.