R/utils.R

Defines functions err_print tryGet

tryGet = function(code) {
  tryCatch(code,
           error = function(c) "error",
           warning = function(c) "warning"
  )
}

err_print = function() {
  msg = paste0("Conection error.", "\n", "If the problem persists, ",
               "try a different download method from 'download.file()'.")
  message(msg)
}

Try the rgugik package in your browser

Any scripts or data that you put into this service are public.

rgugik documentation built on May 5, 2021, 1:07 a.m.