auth_sucess <- tryCatch( cancerscreening:::khis_cred_testing(), cancerscreening_cred_internal_error = function(e) NULL ) if(!isTRUE(auth_sucess)) { cancerscreening:::cancerscreening_bullets(c( "!" = "Internal auth failed; calling {.fun khis_cred_clear}." )) khis_cred_clear() } skip_if_no_cred <- function() { testthat::skip_if_not(khis_has_cred(), "No KHIS credentials") }