R/is_local.R

Defines functions is_local

Documented in is_local

#' Is local
#' 
#' Determine whether a file exist locally.
#' @param path Path to local file or remote URL.
#' @keywords internal 
#' @returns boolean.
is_local <- function(path) {
    # ssh.utils::file.exists.remote(file = path) # Doesn't work?
    (!is_url(path)) && (file.exists(path))
}
neurogenomics/PeakyFinders documentation built on Oct. 14, 2024, 3:09 p.m.