R/memoise.R
has_cache.Rd
Test whether a memoised function has been cached for particular arguments.
has_cache(f)
f | Function to test. |
---|
A function, with the same arguments as f
, that can be called to test
if f
has cached results.
#> [1] FALSEmem_sum(1, 2, 3)#> [1] 6has_cache(mem_sum)(1, 2, 3) # TRUE#> [1] TRUE