R/check_access.R

Defines functions check_access

Documented in check_access

#' Check access
#' 
#' Check if one has access to directory
#' @param dest_dir Directory to check. 
#' @keywords internal
check_access <- function(dest_dir){ 
    #### 0 == success, -1 === failure ####
    out <- file.access(dest_dir, mode = 2)
    have_write_access <- out==0
    return(have_write_access)
}
neurogenomics/MAGMA_Celltyping documentation built on Oct. 12, 2024, 12:36 a.m.