Module: RMain
Module for working with R objects on the main thead through JavaScript proxies. The RObject
types in RMain
are aliases for proxies to the corresponding types in RWorker
. For instance, RMain.RCharacter
is an alias for RMain.RProxy<RWorker.RCharacter>
. The proxies automatically and asynchronously forward method and getter calls to the implementations on the R worker side.
Table of contents
Type Aliases
Functions
Type Aliases
RCall
Defined in
webR/robj-main.ts:28
RCharacter
Ƭ RCharacter: RProxy
<RCharacter
>
Defined in
webR/robj-main.ts:25
RComplex
Defined in
webR/robj-main.ts:24
RDouble
Defined in
webR/robj-main.ts:23
REnvironment
Ƭ REnvironment: RProxy
<REnvironment
>
Defined in
webR/robj-main.ts:19
RFunction
Ƭ RFunction: RProxy
<RFunction
> & (…args
: unknown
[]) => Promise
<unknown
>
Defined in
webR/robj-main.ts:30
RInteger
Defined in
webR/robj-main.ts:22
RList
Defined in
webR/robj-main.ts:26
RLogical
Defined in
webR/robj-main.ts:21
RNull
Defined in
webR/robj-main.ts:16
RObject
Defined in
webR/robj-main.ts:15
RPairlist
Ƭ RPairlist: RProxy
<RPairlist
>
Defined in
webR/robj-main.ts:18
RRaw
Defined in
webR/robj-main.ts:27
RString
Defined in
webR/robj-main.ts:20
RSymbol
Defined in
webR/robj-main.ts:17
Functions
isRFunction
▸ isRFunction(value
): value is RFunction
Test for an RFunction instance
Parameters
Name | Type | Description |
---|---|---|
value |
any |
The object to test. |
Returns
value is RFunction
True if the object is an instance of an RFunction.
Defined in
webR/robj-main.ts:55
isRObject
▸ isRObject(value
): value is RObject
Test for an RObject instance
RObject is the user facing interface to R objects.
Parameters
Name | Type | Description |
---|---|---|
value |
any |
The object to test. |
Returns
value is RObject
True if the object is an instance of an RObject.
Defined in
webR/robj-main.ts:40