https://github.com/cran/SoDA
Revision 698183c35adc80e5e08cb2ef09ed13dc3c445a97 authored by John M Chambers on 12 June 2014, 00:00:00 UTC, committed by Gabor Csardi on 12 June 2014, 00:00:00 UTC
1 parent dc000f2
Raw File
Tip revision: 698183c35adc80e5e08cb2ef09ed13dc3c445a97 authored by John M Chambers on 12 June 2014, 00:00:00 UTC
version 1.0-6
Tip revision: 698183c
tryRequire.R

tryRequire <- function(what) {
    value <- tryCatch(require(what, quietly = TRUE, character.only = TRUE),
             warning = function(cond) FALSE,
             error = function(cond) FALSE)
    value
}
back to top