Interactively offers the user to set up the default root path.
# S3 method for default
setupCacheRootPath(defaultPath=NULL, ...)
Default root path to set.
Not used.
Returns (invisibly) the root path,
or NULL
if running a non-interactive session.
If the cache root path is already set, it is used and nothing is done.
If the "default" root path (defaultPath
) exists, it is used,
otherwise, if running interactively, the user is asked to approve
the usage (and creation) of the default root path.
In all other cases, the cache root path is set to a session-specific
temporary directory.
Internally, setCacheRootPath
() is used to set the cache root path.
The interactive
() function is used to test whether R is
running interactively or not.