EVOLUTION-MANAGER
Edit File: drop_cache.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Drops the cache of a memoised function for particular...</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for drop_cache {memoise}"><tr><td>drop_cache {memoise}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Drops the cache of a memoised function for particular arguments.</h2> <h3>Description</h3> <p>Drops the cache of a memoised function for particular arguments. </p> <h3>Usage</h3> <pre> drop_cache(f) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>f</code></td> <td> <p>Memoised function.</p> </td></tr> </table> <h3>Value</h3> <p>A function, with the same arguments as <code>f</code>, that can be called to drop the cached results of <code>f</code>. </p> <h3>See Also</h3> <p><code><a href="has_cache.html">has_cache</a></code>, <code><a href="memoise.html">memoise</a></code> </p> <h3>Examples</h3> <pre> mem_sum <- memoise(sum) mem_sum(1, 2, 3) mem_sum(2, 3, 4) has_cache(mem_sum)(1, 2, 3) # TRUE has_cache(mem_sum)(2, 3, 4) # TRUE drop_cache(mem_sum)(1, 2, 3) # TRUE has_cache(mem_sum)(1, 2, 3) # FALSE has_cache(mem_sum)(2, 3, 4) # TRUE </pre> <hr /><div style="text-align: center;">[Package <em>memoise</em> version 2.0.1 <a href="00Index.html">Index</a>]</div> </body></html>