This is a synchronous alternative to the RShell. Please be aware that using this is expensive. Every request effectively causes a new initialization of the R interpreter.

With this class you can run(command) commands, that are potentially decorated with prerequisites. For compatibility, we provide parse(request) and rVersion().

Implements

Constructors

Properties

name: "r-shell" = 'r-shell'
options: Readonly<RShellExecutionOptions>

Methods

  • Runs the given command in the R interpreter.

    Parameters

    • command: string
    • returnErr: boolean = false

    Returns string

  • Instead of returning a promise, this method returns the version of the R interpreter available to this executor, in the SemVer format.

    Returns null | SemVer