noScalar {XR} | R Documentation |
Send a Non-scalar Version of an Object
Description
Ensures that an object is interpreted as a vector (array) when sent to the server language. The default strategy is to send length-1 vectors as scalars.
Usage
noScalar(object)
Arguments
object |
A vector object. Calling with a non-vector is an error. |
Value
the object, but with the S4 bit turned on. Relies on the convention that XR interfaces leave S4 objects as vectors, not scalars, even when they are of length 1
References
Chambers, John M. (2016) Extending R, Chapman & Hall/CRC. ( Chapter 13, discussing this package, is included in the package: ../doc/Chapter_XR.pdf.)
[Package XR version 0.7.2 Index]