R/is_try_error.R

Defines functions is_try_error

#' Check If Object is a Try-Error
#'
#' @param x Any \R object
#'
#' @return A logical sclar
#' @export
#' @examples 
#'
#' x <- try(stop())
#' is_try_error(x)
#'
is_try_error <- function(x){
  inherits(x, "try-error")
}
s-fleck/isit documentation built on Aug. 20, 2019, 8:39 a.m.