ReadonlycommandLineOptions: readonly string[]Command line options to use when starting the R session.
Readonlycwd: stringThe current working directory of the R session.
Readonlyenv: undefined | { readonly [key: string]: undefined | string }The environment variables available in the R session.
Readonlyeol: stringThe character to use to mark the end of a line. Is probably always \n (even on windows).
ReadonlyhomeLibPath: undefined | stringThe path to the library directory, use undefined to let R figure that out for itself
ReadonlyonRevive: (code: number, signal: null | string) => voidCalled when the R session is restarted, this makes only sense if revive is not set to 'never'
ReadonlypathToRExecutable: stringThe path to the R executable, can be only the executable if it is to be found on the PATH.
Readonlyrevive: RShellReviveOptionsIf set, the R session will be restarted if it exits due to an error
Collect lines from the selected streams until the given condition is met or the timeout is reached
This method does allow other listeners to consume the same input
The stream(s) to collect the information from
If the predicate returns true, this will stop the collection and resolve the promise
Configuration for how and when to timeout
Optionalaction: () => voidEvent to be performed after all listeners are installed, this might be the action that triggers the output you want to collect
close the current R session, makes the object effectively invalid (can no longer be reopened etc.)
OptionalfilesToUnlink: readonly string[]If set, these files will be unlinked before closing the session (e.g., to clean up tempfiles)
true if the kill succeeds, false otherwise
Used to deal with the underlying input-output streams of the R process