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 Sept. 18, 2024, 9:08 a.m.