rscript_process: External 'Rscript' process

rscript_processR 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 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()


MangoTheCat/callr documentation built on Aug. 29, 2024, 2:32 a.m.