Plugins for cache policies in the track package specify what objects should be keep in memory at the end of each top level command.
track.plugin.lru(objs, inmem, envname)
: the full object summary dataframe. A subset of this data
frame is returned by
: a logical vector with length equal to the number of rows
: a single string containing the name of the tracking
environment, in a form like
track contains an experimental feature that allows
users to supply their own plugin functions that specify
cache rules. Currently, the plugin function can specify
whether or not an object will be flushed from memory at the
end of a top-level command.
track.plugin.lru() implements a simple least-recently-used discard policy.
To use is, supply it to
Here is another example of a very simple cache plugin function: this one keeps in memory variables whose names begin with the letter 'x'.
1 2 3 4 5
To use this plugin function, supply it to
A plugin function must return a logical vector the same length as
TRUE values where the corresponding objects
should be kept in memory.
To flush cached tracked objects from memory, use
Tony Plate email@example.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.