R/absolute_path.R

Defines functions absolute_path

absolute_path <- function(x){

  if (length(x) != 1L)
    stop("'x' must be a single character string")
  epath <- path.expand(x)

  epath <- normalizePath(epath, "/", mustWork = file.exists(epath))
  epath
}
ardata-fr/locatexec documentation built on Oct. 13, 2023, 3:16 p.m.