Skip to contents

Optionally removes the enw_cache_location environment variable from the user .Renviron file and/or removes it from the local environment. If you unset the local cache and want to switch back to using the persistent cache, you can reload the .Renviron file using readRenviron("~/.Renviron").

Usage

enw_unset_cache(type = c("session", "persistent", "all"))

Arguments

type

A character string specifying the type of cache to unset. It can be one of "session", "persistent", or "all". Default is "session". "session" unsets the cache for the current session, "persistent" removes the cache location from the user’s .Renviron file,and "all" does all options.

Value

The prior cache location, if it existed otherwise NULL.

See also

Examples

if (FALSE) { # interactive()
enw_unset_cache()
}