demo/background-invocation.R

library(scriptexec)

# do not wait for command to finish exist status will be -1 meaning
# 'unknown'
output <- scriptexec::execute("echo my really long task", wait = FALSE)
cat(sprintf("Exit Status: %s\n", output$status))

Try the scriptexec package in your browser

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

scriptexec documentation built on May 2, 2019, 1:49 p.m.