Description Usage Arguments Value Warning Note Author(s) See Also Examples
These functions support the use of memified functions.
1 2 3 4 5 6 |
x, f, object |
A memified function. |
value |
A named list of argument values to replace the existing argument list. An attempt will be made to coerce a non-list to a list. If successful, the coerced arglist will be used and a warning reporting the coercion will be issued. Otherwise an error will be thrown. |
... |
Tagged argument-value pairs to add to or replace existing arglist arguments. |
arglist()
returns the existing argument list.
arglist <- value
replaces the existing argument list with the (possibly coerced) new list.
update()
(silently) adds additional named arguments to a function's arglist and/or changes the values of any that already exist. NULL
is invisibly returned.
The update and replacement functions do not check that valid argument names are used. Invalid arguments can of course cause errors when the memified functions are subsequently invoked.
“arglists”, the remembered argument lists of memified functions, consist only of values that have been explicitly specified in prior calls of the memified function, or via update
or arglist <- value
functionality. Hence default arguments that have not been so changed or specified will not be in the arglists. See formals
or args
for ways to extract/change such defaults.
Bert Gunter
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.