Class: RFunction

RWorker.RFunction

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new RFunction(data): RFunction

Parameters

Name Type
data WebRData

Returns

RFunction

Inherited from

RObject.constructor

Defined in

webR/robj-worker.ts:191

Properties

ptr

ptr: number

Inherited from

RObject.ptr

Defined in

webR/robj-worker.ts:176

Accessors

[toStringTag]

get [toStringTag](): string

Returns

string

Inherited from

RObject.[toStringTag]

Defined in

webR/robj-worker.ts:204

Methods

attrs

attrs(): Nullable<RPairlist>

Returns

Nullable<RPairlist>

Inherited from

RObject.attrs

Defined in

webR/robj-worker.ts:240


capture

capture(options?, ...args): Object

Parameters

Name Type
options EvalROptions
...args (RObject | WebRDataRaw)[]

Returns

Object

Name Type
images ImageBitmap[]
output RList
result RObject

Defined in

webR/robj-worker.ts:752


exec

exec(...args): RObject

Parameters

Name Type
...args (RObject | WebRDataRaw)[]

Returns

RObject

Defined in

webR/robj-worker.ts:740


get

get(prop): RObject

Parameters

Name Type
prop string | number

Returns

RObject

Inherited from

RObject.get

Defined in

webR/robj-worker.ts:283


getDollar

getDollar(prop): RObject

Parameters

Name Type
prop string

Returns

RObject

Inherited from

RObject.getDollar

Defined in

webR/robj-worker.ts:287


includes

includes(name): null | boolean

Parameters

Name Type
name string

Returns

null | boolean

Inherited from

RObject.includes

Defined in

webR/robj-worker.ts:269


inspect

inspect(): void

Returns

void

Inherited from

RObject.inspect

Defined in

webR/robj-worker.ts:218


isNa

isNa(): boolean

Returns

boolean

Inherited from

RObject.isNa

Defined in

webR/robj-worker.ts:226


isNull

isNull(): this is RNull

Returns

this is RNull

Inherited from

RObject.isNull

Defined in

webR/robj-worker.ts:222


isUnbound

isUnbound(): boolean

Returns

boolean

Inherited from

RObject.isUnbound

Defined in

webR/robj-worker.ts:236


names

names(): null | (null | string)[]

Returns

null | (null | string)[]

Inherited from

RObject.names

Defined in

webR/robj-worker.ts:260


pluck

pluck(...path): undefined | RObject

Parameters

Name Type
...path (string | number)[]

Returns

undefined | RObject

Inherited from

RObject.pluck

Defined in

webR/robj-worker.ts:307


set

set(prop, value): RObject

Parameters

Name Type
prop string | number
value RObject | WebRDataRaw

Returns

RObject

Inherited from

RObject.set

Defined in

webR/robj-worker.ts:323


setNames

setNames(values): this

Parameters

Name Type
values null | (null | string)[]

Returns

this

Inherited from

RObject.setNames

Defined in

webR/robj-worker.ts:244


subset

subset(prop): RObject

Parameters

Name Type
prop string | number

Returns

RObject

Inherited from

RObject.subset

Defined in

webR/robj-worker.ts:279


toJs

toJs(options?, depth?): WebRDataJs

Parameters

Name Type Default value
options ToJsOptions undefined
depth number 1

Returns

WebRDataJs

Inherited from

RObject.toJs

Defined in

webR/robj-worker.ts:275


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"

Returns

"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"

Inherited from

RObject.type

Defined in

webR/robj-worker.ts:181


wrap

wrap<T>(this, ptr): InstanceType<T>

Type parameters

Name Type
T extends typeof RObject

Parameters

Name Type
this T
ptr number

Returns

InstanceType<T>

Inherited from

RObject.wrap

Defined in

webR/robj-worker.ts:199