inst/scripts/startDaemon.R

daemonName <- Sys.getenv("rdaemon_daemonName")
logFile <- Sys.getenv("rdaemon_logFile")
threshold <- Sys.getenv("rdaemon_threshold")

if(!nzchar(threshold))
    threshold <- "INFO"

stopifnot(nzchar(daemonName))
library(rdaemon)
rdaemon:::runDaemon(
    daemonName = daemonName, 
    interruptable = FALSE, 
    detach = TRUE, 
    logFile = logFile,
    threshold = threshold
)

Try the rdaemon package in your browser

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

rdaemon documentation built on Sept. 16, 2021, 1:07 a.m.