ocap: Object Capability (OCAP) Functions

Description Usage Arguments Value Author(s)

View source: R/conn.R

Description

The following functions are only meaningful when used by code that is run inside Rserve in object-capability (OCAP) mode. See https://github.com/s-u/Rserve/wiki/OCAP-modeRserve Wiki for details.

ocap registers a function as a capability and returns the reference.

resolve.ocap takes a capability reference and returns the function representing the capability.

Rserve.context retrieves or sets the current context for out-of-band (OOB) messages (see also Rserve.eval for specifying contexts during evaluation).

Usage

1
2
3

Arguments

fun

function to register

name

description of the function, only for informational and logging purposes

ocap

reference previously obtained by a call to ocap

what

if present, sets the context to the supplied value. If missing, the function returns the current context

Value

ocap returns the new capability reference, it will be an object of the class "OCref".

resolve.ocap returns the function corresponding to the reference or NULL if the reference does not exist. It will raise an error if ocap is not a valid "OCref" object.

Rserve.context returns the current context

Author(s)

Simon Urbanek


Rserve documentation built on Nov. 25, 2021, 5:06 p.m.

Related to ocap in Rserve...