Macaulay2 » Documentation
Packages » RInterface » RQuote
next | previous | forward | backward | up | index | toc

RQuote -- create an unevaluated R symbol

Description

Create an unevaluated R symbol. This is analogous to R's quote function, and is useful when a symbol itself (rather than its value) needs to be passed to an R function.

Compare the behavior of RSymbol, which evaluates the symbol and returns its value:

i1 : RSymbol "pi"

o1 = [1] 3.141593

o1 : RObject of type double
i2 : RQuote "pi"

o2 = pi

o2 : RObject of type symbol

A Macaulay2 Symbol may also be used.

i3 : RQuote pi

o3 = pi

o3 : RObject of type symbol

See also

Ways to use RQuote:

  • RQuote(String)
  • RQuote(Thing)

For the programmer

The object RQuote is a method function.


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