Module: RWorker

Module for working with R objects on the worker thead.

Table of contents

Classes

Interfaces

Type Aliases

Variables

Functions

Type Aliases

Nullable

Ƭ Nullable<T>: T | RNull

Type parameters

Name
T

Defined in

webR/robj-worker.ts:90


RHandle

Ƭ RHandle: RObject | RPtr

Defined in

webR/robj-worker.ts:14


atomicType

Ƭ atomicType: number | boolean | Complex | string

Defined in

webR/robj-worker.ts:926

Variables

objs

objs: Object

A store for persistent R objects, initialised at R startup.

Type declaration

Name Type
baseEnv REnvironment
bracket2Symbol RSymbol
bracketSymbol RSymbol
dollarSymbol RSymbol
emptyEnv REnvironment
false RLogical
globalEnv REnvironment
na RLogical
naString RObject
namesSymbol RSymbol
null RNull
true RLogical
unboundValue RObject

Defined in

webR/robj-worker.ts:1380


shelters

Const shelters: Map<string, number[]>

Defined in

webR/robj-worker.ts:32

Functions

destroy

destroy(shelter, x): void

Parameters

Name Type
shelter string
x RHandle

Returns

void

Defined in

webR/robj-worker.ts:58


getRWorkerClass

getRWorkerClass(type): typeof RObject

Parameters

Name Type
type "string" | "symbol" | "function" | "null" | "pairlist" | "closure" | "environment" | "promise" | "call" | "special" | "builtin" | "logical" | "integer" | "double" | "complex" | "character" | "dots" | "any" | "list" | "expression" | "bytecode" | "pointer" | "weakref" | "raw" | "s4" | "new" | "free" | RCtor

Returns

typeof RObject

Defined in

webR/robj-worker.ts:1302


handlePtr

handlePtr(x): RPtr

Parameters

Name Type
x RHandle

Returns

RPtr

Defined in

webR/robj-worker.ts:16


keep

keep(shelter, x): void

Parameters

Name Type
shelter string
x RHandle

Returns

void

Defined in

webR/robj-worker.ts:38


purge

purge(shelter): void

Parameters

Name Type
shelter string

Returns

void

Defined in

webR/robj-worker.ts:72