This package is intended for small datasets. A copy of the data is encoded
as a string (using base64 encoding, after compressing the data) and that
string is copied into your code. Even though the data is compressed, the
encoded string can still be quite long. If your data is more than a few
hundred observations, this package probably isn't for you.
load.fcn
must contain executable R code. Unless that code is a
single expression, normally it would be enclosed in a pair of braces.
cache
must be a string that was originally produced by
copy_rde_var
. See the documentation for that function for
more details about the format of this string.
If the code in load.fcn
fails, then a message is produced to
indicate that the failure and the data encoded in cache
is returned
instead. This would occur if you share you code with someone who does
not have access to the data that you're loading in your code.
If use.cache = TRUE
, the code in load.fcn
is ignored and
the data is loaded from the encoded string cache
. This can be useful
if it takes a very long time obtain the data and you re-run your code
often.
If the value produced by the code in load.fcn
does not match the
value encoded in cache
, then a warning is produced to indicate
that there is a mismatch.