Learn R Programming

callr (version 3.7.6)

rscript_process: External Rscript process

Description

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

Arguments

Super class

processx::process -> rscript_process

Methods

Inherited methods


Method new()

Create a new Rscript process.

Usage

rscript_process$new(options)

Arguments

options

A list of options created via rscript_process_options().


Method finalize()

Clean up after an Rsctipt process, remove temporary files.

Usage

rscript_process$finalize()


Method clone()

The objects of this class are cloneable with this method.

Usage

rscript_process$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

Run this code
if (FALSE) {
options <- rscript_process_options(script = "script.R")
rp <- rscript_process$new(options)
rp$wait()
rp$read_output_lines()
}

Run the code above in your browser using DataLab