rscript_process {callr}R Documentation

External Rscript process

Description

An Rscript script.R command that runs in the background. This is an R6 class that extends the process class.

Usage

rp <- rscript_process$new(options)

Arguments

Details

rscript_process$new creates a new instance. Its options argument is best created by the rscript_process_options() function.

Examples

## Not run: 
options <- rscript_process_options(script = "script.R")
rp <- rscript_process$new(options)
rp$wait()
rp$read_output_lines()

## End(Not run)

[Package callr version 3.3.2 Index]