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 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


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


[Package callr version 3.7.0 Index]