Description Usage Arguments Details Value Examples
Assign value to variable if the value is not cached
1 | freeze(object, expression)
|
object |
a string given the name of the variable to be assigned to |
expression |
the expression evaluating into the value to be assigned |
For saving time, objects can be cached under their object name with the ".rda" extension in a cache directory "/cache" under the current working directory. If a cached version of the variable exists, do not recalculate the assigned part of the expression, but rather use the cache. This differs from memoization as a permanently cached version is used.
nothing, invoked for side effects (assigning a value to a variable)
1 | ## Not run: freeze("a_big_sum", sum(1:1020))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.