Calculates the path to the directory where Gutenberg files are stored,
based on the current gutenbergr_cache_type and gutenbergr_base_cache_dir
options.
Cache options
The following options control caching behavior:
gutenbergr_cache_type: Character string indicating how downloaded works are cached. Must be either"session"(default) or"persistent".gutenbergr_base_cache_dir: Base directory used for persistent caching whengutenbergr_cache_type = "persistent".By default, this is an OS-specific cache directory determined by
tools::R_user_dir("gutenbergr", "cache"). Advanced users may set this to a custom path.
