R/get_path.R

Defines functions get_path

#' @export
get_path <- function(file) {
  
  sapply(file, function(vec) {
  
      if(grepl("/", vec)) {
      gsub("(^.*/).*$", "\\1", vec)
    } else {
      path <- "./"
    }
    
  })
  
}
cmcouto-silva/gt documentation built on June 6, 2021, 7:14 p.m.