Create options for an r_process object

r_process_options(...)

Arguments

... Options to override, named arguments.

Value

A list of options.

r_process_options() creates a set of options to initialize a new object from the r_process class. Its arguments must be named, the names are used as option names. The options correspond to (some of) the arguments of the r() function. At least the func option must be specified, this is the R function to run in the background.

Examples

## List all options and their default values:
r_process_options()#> $func #> NULL #> #>$args
#> list()
#>
#> $libpath #> [1] "/Users/gaborcsardi/R" #> [2] "/Library/Frameworks/R.framework/Versions/3.5/Resources/library" #> #>$repos
#>                          CRAN
#> "https://cloud.r-project.org"
#>
#> $stdout #> [1] "|" #> #>$stderr
#> [1] "|"
#>
#> $poll_connection #> [1] TRUE #> #>$error
#> [1] "error"
#>
#> $cmdargs #> [1] "--slave" "--no-save" "--no-restore" #> #>$system_profile
#> [1] FALSE
#>
#> $user_profile #> [1] FALSE #> #>$env
#> character(0)
#>
#> $supervise #> [1] FALSE #> #>$load_hook
#> NULL
#>
#> \$extra
#> list()
#>