clean
Cleans up all work done by make()
.
clean(..., list = character(0), destroy = FALSE, path = getwd(),
search = TRUE)
targets to remove from the cache, as names (unquoted)
or character strings (quoted). Similar to ...
in
remove(...)
.
character vector naming targets to be removed from the
cache. Similar to the list
argument of remove()
.
logical, whether to totally remove the drake cache.
If destroy
is FALSE
, only the targets
from make
()
are removed. If TRUE
, the whole cache is removed, including
session metadata, etc.
Root directory of the drake project,
or if search
is TRUE
, either the
project root or a subdirectory of the project.
logical. If TRUE
, search parent directories
to find the nearest drake cache. Otherwise, look in the
current working directory only.
You must be in your project's working directory
or a subdirectory of it.
clean(search = TRUE)
searches upwards in your folder structure
for the drake cache and acts on the first one it sees. Use
search == FALSE
to look within the current working
directory only.
WARNING: This deletes ALL work done with make()
,
which includes
file targets as well as the entire drake cache. Only use clean()
if you're sure you won't lose anything important.