An R process that runs in the background. This is an R6 class that extends the processx::process class. The process starts in the background, evaluates an R function call, and then quits.
Start a new R process in the background.
A list of options created via
Return the result, an R object, from a finished
background R process. If the process has not finished yet, it throws
an error. (You can use
wait() method (see processx::process) to
wait for the process to finish, optionally with a timeout.) You can
processx::poll() to wait for the end of the process,
together with other processes or events.
The return value of the R expression evaluated in the R process.
Clean up temporary files once an R process has finished and its handle is garbage collected.
The objects of this class are cloneable with this method.
r_process$clone(deep = FALSE)
Whether to make a deep clone.
## List all options and their default values: r_process_options() ## Start an R process in the background, wait for it, get result opts <- r_process_options(func = function() 1 + 1) rp <- r_process$new(opts) rp$wait() rp$get_result()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.