as.char.or.expr {base}R Documentation

Coerce to Character or Expression

Description

Coerce expression and call objects to expressions, and all other objects to character.

Usage

as.char.or.expr(x)

Arguments

x an arbitrary R object.

Details

This function is used for handling the text arguments to the text-drawing functions. These arguments can be character strings or expressions (which are interpreted as mathematical expressions and typeset according to TeX-like rules, see plotmath for more details). Users will typically have no need for it.

Examples

as.char.or.expr("This is a string.")
as.char.or.expr(call("round", 10.5))

[Package Contents]