The cache directory can be set in the config-file (moodleR:->cache_dir:), which is recommended. If it is not present, or no config is found, a tempdir() will be returned.

mdl_get_cache_dir()

Value

Character vector with path