deleteLocalRepo deletes the existing Repository from the given directory.
As a result all artifacts from gallery folder are removed and database backpack.db
is deleted.
deleteLocalRepo(repoDir, deleteRoot = FALSE, unset = FALSE) deleteRepo(...)
| repoDir | A character that specifies the directory for the Repository which is to be deleted. |
|---|---|
| deleteRoot | A logical value that specifies if the repository root directory should be deleted for Local Repository. |
| unset | A logical. If deleted |
| ... | All arguments are being passed to |
Remember that using tempfile() instead of tempdir()
in examples section is crucial. tempdir() is existing directory
in which R works so calling deleteLocalRepo(exampleRepoDir, deleteRoot=TRUE)
removes important R files. You can find out more information about this problem at
stackoverflow
webpage.
Bug reports and feature requests can be sent to https://github.com/pbiecek/archivist/issues
Biecek P and Kosinski M (2017). "archivist: An R Package for Managing, Recording and Restoring Data Analysis Results." _Journal of Statistical Software_, *82*(11), pp. 1-28. doi: 10.18637/jss.v082.i11 (URL: http://doi.org/10.18637/jss.v082.i11). URL https://github.com/pbiecek/archivist
Other archivist: Repository,
Tags, %a%,
addHooksToPrint, addTagsRepo,
aformat, ahistory,
alink, aoptions,
archivist-package,
areadLocal, aread,
asearchLocal, asearch,
asession, atrace,
cache, copyLocalRepo,
createLocalRepo,
createMDGallery,
getRemoteHook, getTagsLocal,
loadFromLocalRepo, md5hash,
removeTagsRepo, restoreLibs,
rmFromLocalRepo,
saveToLocalRepo,
searchInLocalRepo,
setLocalRepo,
shinySearchInLocalRepo,
showLocalRepo,
splitTagsLocal,
summaryLocalRepo,
zipLocalRepo
Other archivist: Repository,
Tags, %a%,
addHooksToPrint, addTagsRepo,
aformat, ahistory,
alink, aoptions,
archivist-package,
areadLocal, aread,
asearchLocal, asearch,
asession, atrace,
cache, copyLocalRepo,
createLocalRepo,
createMDGallery,
getRemoteHook, getTagsLocal,
loadFromLocalRepo, md5hash,
removeTagsRepo, restoreLibs,
rmFromLocalRepo,
saveToLocalRepo,
searchInLocalRepo,
setLocalRepo,
shinySearchInLocalRepo,
showLocalRepo,
splitTagsLocal,
summaryLocalRepo,
zipLocalRepo
# NOT RUN { exampleRepoDir <- tempfile() createLocalRepo( repoDir = exampleRepoDir, default = TRUE ) data(iris) saveToLocalRepo(iris) deleteLocalRepo( repoDir = exampleRepoDir, unset = TRUE, deleteRoot = TRUE) # }