valueFromServer: Convert the String Returned by a Server Language Interface to...

Description Usage Arguments Value References

View source: R/Interface.R

Description

This is the conversion mechanism for results returned from a server language interface. By default, JSON is used to decode the string. Otherwise the result of the basic decoding should be provided as argument object. Should be called by the implementation of ServerEval for individual interface classes.

Usage

1
valueFromServer(string, key, get, evaluator, object)

Arguments

string

the string to be passed to JSON.

key

the key if a proxy was allowed, otherwise the empty string.

get

the logical controling whether a proxy or a converted value was wanted.

evaluator

the evaluator object that issued the server language expression.

object

If JSON is not used, the call from the server language method should provide the elementary conversion of the result (without using asRObject() and the string argument should be omitted. If JSON is used, object should be computed by default from JSON.

Value

the R object implied by the server result.

References

Chambers, John M. (2016) Extending R, Chapman & Hall/CRC. ( Chapter 13, discussing this package, is included in the package: ../doc/Chapter_XR.pdf.)


XR documentation built on May 2, 2019, 6:01 a.m.

Related to valueFromServer in XR...