R/fileD.R

Defines functions fileD

Documented in fileD

#' Returns the last element of a path
#'
#' @param x a file path
#'
#' @return wd
#' @export fileD
fileD <- function(x){

    wd <- stringr::str_split(x, "/", simplify = TRUE)
    wd <- wd[length(wd)]

    return(wd)
}
NRSC/nphys documentation built on Nov. 13, 2024, 2:12 a.m.