Macaulay2 » Documentation
Packages » RInterface » RContext » RContext _ String
next | previous | forward | backward | up | index | toc

RContext _ String -- get a variable from an R context

Description

Returns the value of the named variable from the R environment associated with the context.

i1 : ctx = RContext "x <- 42L"

o1 = ctx

o1 : RContext
i2 : ctx_"x"

o2 = [1] 42

o2 : RObject of type integer

Ways to use this method:


The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/RInterface/doc/context.m2:92:0.