Utility tools for M2
m2_name(x)m2_name(x) <- value
m2_meta(x, m2_attr)
m2_meta(x, m2_attr) <- value
m2_structure(x = NA, m2_name, m2_class, m2_meta, base_class)
m2_exists(name)
m2_ls(all.names = FALSE)
m2_rm(name)
m2_getwd()
an object of class m2
the value to assign
the name of an M2 attribute
m2_name
M2 attribute
m2_class
M2 attribute
m2_meta
M2 attribute
a base class; an R class to use for dispatching
if there is no relevant method for the other classes (e.g.
m2
)
a string; the name of a M2 object
if TRUE
, all registered Macaulay2
variables, including ones internally used by m2r, will be
returned