R/file_utils.R

##' Wrapper for file.access to test file write permissions.
##' From \code{dplyr}
##' @title Check file write permission.
##' @param x File path
##' @export
is_writeable <- function(x) {
  unname(file.access(x, 2) == 0L)
}
nverno/iclean documentation built on May 24, 2019, 10:54 a.m.