RObject xAn RObject is a SEXP (pointer) to an R object in memory. Note that in R, most objects are actually vectors, and scalars are just vectors of length 1.
RObject is a SelfInitializingType, and so it acts as its own constructor method. When passed a Macaulay2 object as input, the corresponding R object is returned. See the converting to R objects section below for the supported input types.
Each RObject is displayed by calling R's capture.output function.
|
|
It is converted to a string using R's toString function.
|
The object RObject is a self initializing type, with ancestor classes voidstar < ForeignObject < HashTable < Thing.
The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/RInterface/doc/objects.m2:127:0.