-
Notifications
You must be signed in to change notification settings - Fork 151
Closed
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behaviorsession:state
Description
I hoped the following code ignores all errors yet asks users to install noSuchPackage
if it's not installed. Are there anyway to make this work? I guess the answer is probably no because check_installed()
somehow uses the mechanism of tryCatch()
behind the scene, but want to confirm (I read the code, but I couldn't understand what's happening).
tryCatch(
rlang::check_installed("noSuchPackage"),
error = \(e) invisible(NULL)
)
The context is we see this problem in ggplot2:
Metadata
Metadata
Assignees
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behaviorsession:state