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

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758200741, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/R/functions/expression(70): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78