Returns the cache directory path, checking environment variables and options before falling back to the default R user directory.
Returns the cache directory path, checking environment variables and options before falling back to the default R user directory.