R/is_exe.R

Defines functions is_exe

Documented in is_exe

#' Determine if a file can be executed
#' @param filename path to a filename
#' @return TRUE if the file can be executed, FALSE otherwise
#' @author Richèl J.C. Bilderbeek
#' @export
is_exe <- function(filename) {
  as.numeric(file.access(filename, mode = 1)) == 0
}
richelbilderbeek/plinkr documentation built on March 25, 2024, 3:18 p.m.