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 March 24, 2024, 4:28 p.m.