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

Ƭ RCall: RProxy<RCall>

Defined in

webR/robj-main.ts:28


RCharacter

Ƭ RCharacter: RProxy<RCharacter>

Defined in

webR/robj-main.ts:25


RComplex

Ƭ RComplex: RProxy<RComplex>

Defined in

webR/robj-main.ts:24


RDouble

Ƭ RDouble: RProxy<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

Ƭ RInteger: RProxy<RInteger>

Defined in

webR/robj-main.ts:22


RList

Ƭ RList: RProxy<RList>

Defined in

webR/robj-main.ts:26


RLogical

Ƭ RLogical: RProxy<RLogical>

Defined in

webR/robj-main.ts:21


RNull

Ƭ RNull: RProxy<RNull>

Defined in

webR/robj-main.ts:16


RObject

Ƭ RObject: RProxy<RObject>

Defined in

webR/robj-main.ts:15


RPairlist

Ƭ RPairlist: RProxy<RPairlist>

Defined in

webR/robj-main.ts:18


RRaw

Ƭ RRaw: RProxy<RRaw>

Defined in

webR/robj-main.ts:27


RString

Ƭ RString: RProxy<RString>

Defined in

webR/robj-main.ts:20


RSymbol

Ƭ RSymbol: RProxy<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