forget

0th

Percentile

Forget past results.

Forget past results. Resets the cache of a memoised function.

Usage
forget(f)
Arguments
f
memoised function
See Also

memoise, is.memoised

Aliases
  • forget
Examples
memX <- memoise(function() { Sys.sleep(1); runif(1) })
# The forget() function
system.time(print(memX()))
system.time(print(memX()))
forget(memX)
system.time(print(memX()))
Documentation reproduced from package memoise, version 1.1.0, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.