R/fileChoose.R

#' Better File Chooser
#'
#' Builds upon file.choose(), but returns NULL when cancelled
#' @return The location of the file
#' @export

fileChoose <- function() {
  pathname <- NULL
  tryCatch({
    pathname <- file.choose()
  }, error = function(ex) {
    ""
  })
  pathname
}
Stan125/GREA documentation built on May 9, 2019, 1:55 p.m.