R/flaky.R

Defines functions safeDevCapabilities

Documented in safeDevCapabilities

#'
#'   flaky.R
#'
#'  Code to defend against crashes in calls to external packages
#'
#'  $Revision: 1.1 $ $Date: 2023/07/09 04:13:48 $
#'

safeDevCapabilities <- function() {
  a <- try(dev.capabilities())
  if(!inherits(a, "try-error"))
    return(a)
  warning("dev.capabilities() caused an error!", call.=FALSE)
  return(NULL)
}

Try the spatstat.geom package in your browser

Any scripts or data that you put into this service are public.

spatstat.geom documentation built on Oct. 20, 2023, 9:06 a.m.