Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

r_session_options

Create options for an r_session object


Description

Create options for an r_session object

Usage

r_session_options(...)

Arguments

...

Options to override, named arguments.

Value

Named list of options.

The current options are:

  • libpath: Library path for the subprocess. By default the same as the current library path. I.e. not necessarily the library path of a fresh R session.)

  • repos: repos option for the subprocess. By default the current value of the main process.

  • stdout: Standard output of the sub-process. This can be NULL or a pipe: "|". If it is a pipe then the output of the subprocess is not included in the responses, but you need to poll and read it manually. This is for exports.

  • stderr: Similar to stdout, but for the standard error.

  • error: See 'Error handling' in r().

  • cmdargs: See the same argument of r(). (Its default might be different, though.)

  • system_profile: See the same argument of r().

  • user_profile: See the same argument of r().

  • env: See the same argument of r().

  • load_hook: NULL, or code (quoted) to run in the sub-process at start up. (I.e. not for every single run() call.)

  • extra: List of extra arguments to pass to processx::process.

Call r_session_options() to see the default values. r_session_options() might contain undocumented entries, you cannot change these.

Examples

r_session_options()

callr

Call R from R

v3.7.0
MIT + file LICENSE
Authors
Gábor Csárdi [aut, cre, cph] (<https://orcid.org/0000-0001-7098-9676>), Winston Chang [aut], RStudio [cph, fnd], Mango Solutions [cph, fnd]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.