Rscript processAn Rscript script.R command that runs in the background. This is an
R6 class that extends the processx::process class.
processx::process -> rscript_process
new()Create a new Rscript process.
rscript_process$new(options)
optionsA list of options created via
rscript_process_options().
finalize()Clean up after an Rsctipt process, remove
temporary files.
rscript_process$finalize()
clone()The objects of this class are cloneable with this method.
rscript_process$clone(deep = FALSE)
deepWhether to make a deep clone.
# NOT RUN {
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