rscript_process: External 'Rscript' process

Description Super class Methods Examples

Description

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

Super class

processx::process -> rscript_process

Methods

Public 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

1
2
3
4
options <- rscript_process_options(script = "script.R")
rp <- rscript_process$new(options)
rp$wait()
rp$read_output_lines()

callr documentation built on April 20, 2021, 5:06 p.m.