powered by
.cache.writable() uses file.access() to test if a given location exists and is writable by the user.
.cache.writable()
file.access()
.cache.writable(path)
TRUE if both conditions are met, FALSE if not.
(character). The path to be tested.
character
file.access
if (FALSE) .cache.writable(rappdirs::user_cache_dir())
Run the code above in your browser using DataLab