Interface: WebROptions

WebR.WebROptions

The configuration settings to be used when starting webR.

Table of contents

Properties

Properties

RArgs

Optional RArgs: string[]

Command line arguments to be passed to R. Default: [].

Defined in

webR/webr-main.ts:135


REnv

Optional REnv: Object

Environment variables to be made available for the R process. Default: { R_HOME: '/usr/lib/R', R_ENABLE_JIT: 0 }.

Index signature

▪ [key: string]: string

Defined in

webR/webr-main.ts:141


baseUrl

Optional baseUrl: string

The base URL used for downloading R WebAssembly binaries. Default: 'https://webr.r-wasm.org/[version]/'

Defined in

webR/webr-main.ts:147


channelType

Optional channelType: 0 | 1 | 2 | 3

Set the communication channel type to be used. Default: channelType.Automatic

Defined in

webR/webr-main.ts:178


createLazyFilesystem

Optional createLazyFilesystem: boolean

Create the lazy virtual filesystem entries before starting R? Default: true.

Defined in

webR/webr-main.ts:184


homedir

Optional homedir: string

The WebAssembly user’s home directory and initial working directory. Default: '/home/web_user'

Defined in

webR/webr-main.ts:166


interactive

Optional interactive: boolean

Start R in interactive mode? Default: true.

Defined in

webR/webr-main.ts:172


repoUrl

Optional repoUrl: string

The repo URL to use when downloading R WebAssembly packages. Default: 'https://repo.r-wasm.org/

Defined in

webR/webr-main.ts:153


serviceWorkerUrl

Optional serviceWorkerUrl: string

The base URL from where to load JavaScript worker scripts when loading webR with the ServiceWorker communication channel mode. Default: ''

Defined in

webR/webr-main.ts:160