R/utils.R

Defines functions .onLoad 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
}
.onLoad <- function(libname, pkgname) {
  set_minimage_defaults(compimg_path = working_directory())
}
ardata-fr/minimage documentation built on Aug. 24, 2021, 2:21 a.m.