Setting the rb3.cachedir
Option
To set the rb3.cachedir
option, use the options()
function and provide
the desired directory path as a string. For example:
# Set the cache directory to a custom path
options(rb3.cachedir = "/path/to/your/cache/directory")
Replace "/path/to/your/cache/directory"
with the actual path where you want
the cached data to be stored.
Viewing the Current Value of rb3.cachedir
To check the current value of the rb3.cachedir
option, use the getOption()
function:
# View the current cache directory
getOption("rb3.cachedir")
This will return the path to the directory currently set for caching, or
NULL
if the option has not been set.
Notes
Ensure that the specified directory exists and is writable.
If the rb3.cachedir
option is not set, the package use a temporary directory (base::tempdir()
).