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:91
RHandle
Defined in
webR/robj-worker.ts:15
atomicType
Ƭ atomicType: number
| boolean
| Complex
| string
Defined in
webR/robj-worker.ts:948
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:1402
shelters
• Const
shelters: Map
<string
, number
[]>
Defined in
webR/robj-worker.ts:33
Functions
destroy
▸ destroy(shelter
, x
): void
Parameters
Name | Type |
---|---|
shelter |
string |
x |
RHandle |
Returns
void
Defined in
webR/robj-worker.ts:59
getRWorkerClass
▸ getRWorkerClass(type
): typeof RObject
Parameters
Name | Type |
---|---|
type |
"string" | "symbol" | "function" | "raw" | "null" | "pairlist" | "closure" | "environment" | "promise" | "call" | "special" | "builtin" | "logical" | "integer" | "double" | "complex" | "character" | "dots" | "any" | "list" | "expression" | "bytecode" | "pointer" | "weakref" | "s4" | "new" | "free" | RCtor |
Returns
typeof RObject
Defined in
webR/robj-worker.ts:1324
handlePtr
▸ handlePtr(x
): RPtr
Parameters
Name | Type |
---|---|
x |
RHandle |
Returns
Defined in
webR/robj-worker.ts:17
keep
▸ keep(shelter
, x
): void
Parameters
Name | Type |
---|---|
shelter |
string |
x |
RHandle |
Returns
void
Defined in
webR/robj-worker.ts:39
purge
▸ purge(shelter
): void
Parameters
Name | Type |
---|---|
shelter |
string |
Returns
void
Defined in
webR/robj-worker.ts:73