R/is.dir.R

Defines functions is.dir

Documented in is.dir

#' Whether file path is directory
#'
#' @param ... one or more file path
#'
#' @return logical
#' @export
#'
is.dir <- function(...){
    c(...) |> 
        file.info() |> 
        select(j='isdir',drop=TRUE)
}

Try the do package in your browser

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

do documentation built on Sept. 12, 2024, 6:27 a.m.