Private implementation function that executes a babylon call (bbi ...) with processx::process$new()

bbi_exec(.cmd_args, .dir = ".", .verbose = FALSE, .wait = FALSE, ...)

Arguments

.cmd_args

A character vector of command line arguments for the execution call

.dir

The working directory to run command in. Defaults to "."

.verbose

Print stdout and stderr as process runs #### NOT IMPLEMENTED?

.wait

If true, don't return until process has exited.

...

arguments to pass to processx::process$new()

Value

An S3 object of class babylon_process process -- The process object (see ?processx::process$new for more details on what you can do with this). stdout -- the stdout and stderr from the process, if .wait = TRUE. If .wait = FALSE this will be NULL. bbi -- character scalar with the execution path used for bbi. cmd_args -- character vector of all command arguments passed to the process. working_dir -- the directory the command was run in, passed through from .dir argument.