Optional
options: Partial<RShellOptions>clears the R environment using the rm
command.
Close the current R session, makes the object effectively invalid (can no longer be reopened etc.)
true if the operation succeeds, false otherwise
checks if a given package is already installed on the system!
Obtain the temporary directory used by R. Additionally, this marks the directory for removal when the shell exits.
sends the given command directly to the current R session will not do anything to alter input markers!
Send a command and collect the output
The R command to execute (similar to sendCommand)
Optional
addonConfig: Partial<OutputCollectorConfiguration>Further configuration on how and what to collect: see OutputCollectorConfiguration, defaults are set in DEFAULT_OUTPUT_COLLECTOR_CONFIGURATION
The
RShell
represents an interactive session with the R interpreter. You can configure it by RShellOptions.At the moment we are using a live R session (and not networking etc.) to communicate with R easily, which allows us to install packages etc. However, this might and probably will change in the future (leaving this as a legacy mode :D)