R/paths.R

Defines functions prefix_path

Documented in prefix_path

#' Prefix a path
#'
#' file.path with arguments reversed
#'
#' @param path path to be prefixed
#' @param prefix path to be appended before
#' @param ... passed on to file.path
#' @return `file.path(prefix, path, ...)`
#' @export
prefix_path <- function(path, prefix, ...) {
  file.path(prefix, path, ...)
}

Try the arpr package in your browser

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

arpr documentation built on Aug. 2, 2021, 5:08 p.m.