Search notes:

R function: expression

Capturing an expression

expression(…) captures the expression within the parenthesis without evaluating it.
When the (returned) expression value is printed, the captured expression is still there:
expr <- expression(7 * 6);
print(expr);
#
#  expression("7 * 6")
Github repository about-R, path: /functions/expression/print.R

Evaluating an expression

An expression can then be evaluated:
expr <- expression(7 * 6);

eval(expr);
#
#  42
Github repository about-R, path: /functions/expression/eval.R

See also

The R function parse()
The expression mode.
Index to (some) R functions

Index