R/zzz.R

Defines functions onLoad

.onLoad <- function(libname, pkgname) {
  tryCatch({
    if (is.function(httpuv::startDaemonizedServer))
      options(epivizrCanDaemonize = .Platform$OS.type == "unix")
  }, error=function(e) {
    options(epivizCanDaemonize = FALSE)
  })
}
epiviz/epivizrServer documentation built on Oct. 12, 2018, 8:04 a.m.