conditionz (version 0.1.0)

capture_message: capture condition

Description

capture condition

Usage

capture_message(expr)

capture_warning(expr)

Arguments

Examples

Run this code
# NOT RUN {
foom <- function(x) {
  message("its too bad")
  return(x)
}
capture_message(foom(4))

foow <- function(x) {
  warning("its too bad")
  return(x)
}
capture_warning(foow(4))
# }

Run the code above in your browser using DataCamp Workspace