@eagleoutice/flowr - v2.10.1
    Preparing search index...

    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)

    Implements

    Index

    Constructors

    Properties

    async: true
    name: "r-shell" = 'r-shell'
    options: Readonly<RShellOptions>

    Methods

    • Close the current R session, makes the object effectively invalid (can no longer be reopened etc.)

      Returns boolean

      true if the operation succeeds, false otherwise

    • Parameters

      • ...paths: readonly string[]

      Returns void

    • checks if a given package is already installed on the system!

      Parameters

      • packageName: string

      Returns Promise<boolean>

    • Obtain the temporary directory used by R. Additionally, this marks the directory for removal when the shell exits.

      Returns Promise<string>

    • sends the given command directly to the current R session will not do anything to alter input markers!

      Parameters

      • command: string

      Returns void

    • execute multiple commands in order

      Parameters

      • ...commands: readonly string[]

      Returns void

      sendCommand