Macaulay2 » Documentation
Packages » RInterface » RContext » use(RContext)
next | previous | forward | backward | up | index | toc

use(RContext) -- import R context variables into Macaulay2

Description

Imports the variables from a context's R environment into Macaulay2's global symbol table.

i1 : ctx = RContext "a <- 5L; b <- 10L"

o1 = ctx

o1 : RContext
i2 : use ctx
i3 : a

o3 = [1] 5

o3 : RObject of type integer
i4 : b

o4 = [1] 10

o4 : RObject of type integer

See also

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:141:0.