Search notes:

R: function

A function has three components:
A function is an object. This makes it possible to pass a function as arguments to other functions (such as lapply etc.).
R allows to define a function within a function.

Evaluation environment

When a function is called, an environment (the evaluation environment) is created in which the body of the function is evaluated.

Returning values

R does not have a return statement.
It has, however, a return function(?).
Thus, in order to use return, parenthesis are needed around the returned value.

See also

on.exit(…) allows to register a function to be called when a function exits.

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...', 1743148226, '3.14.6.188', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/R/function/index(61): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78