createLocalRepo creates an empty Repository in the given directory in which archived artifacts will be stored.
createLocalRepo(repoDir, force = TRUE, default = FALSE)
createEmptyRepo(...)force = TRUE and repoDir parameter specifies the directory that doesn't exist,
then function call will force to create new repoDir directory.
Default set to force = TRUE.default = TRUE then repoDir is set as default Local Repository.createLocalRepo.All artifacts which are desired to be archived are going to be saved in the local Repository, which is an SQLite
database stored in a file named backpack.
After calling saveToRepo function, each artifact will be archived in a md5hash.rda file.
This file will be saved in a folder (under repoDir directory) named
gallery. For every artifact, md5hash is a unique string of length 32 that is produced by
digest function, which uses a cryptographical MD5 hash algorithm.
To learn more about artifacts visit archivist-package.
Created backpack database is a useful and fundamental tool for remembering artifact's
name, class, archiving date etc. (the so called Tags)
or for keeping artifact's md5hash.
Besides the backpack database, gallery folder is created in which all
artifacts will be archived.
After every saveToRepo call the database is refreshed. As a result, the artifact is available
immediately in backpack.db database for other collaborators.
Repository,
Tags, %a%,
addHooksToPrint, addTagsRepo,
aformat, ahistory,
alink, aoptions,
archivist-package, aread,
asearch, asession,
atrace, cache,
copyLocalRepo,
createMDGallery,
deleteLocalRepo,
getRemoteHook, getTagsLocal,
loadFromLocalRepo, md5hash,
restoreLibs, rmFromLocalRepo,
saveToLocalRepo,
searchInLocalRepo,
setLocalRepo,
shinySearchInLocalRepo,
showLocalRepo,
splitTagsLocal,
summaryLocalRepo,
zipLocalRepoOther archivist: Repository,
Tags, %a%,
addHooksToPrint, addTagsRepo,
aformat, ahistory,
alink, aoptions,
archivist-package, aread,
asearch, asession,
atrace, cache,
copyLocalRepo,
createMDGallery,
deleteLocalRepo,
getRemoteHook, getTagsLocal,
loadFromLocalRepo, md5hash,
restoreLibs, rmFromLocalRepo,
saveToLocalRepo,
searchInLocalRepo,
setLocalRepo,
shinySearchInLocalRepo,
showLocalRepo,
splitTagsLocal,
summaryLocalRepo,
zipLocalRepo
## Not run:
# exampleRepoDir <- tempfile()
# createLocalRepo( repoDir = exampleRepoDir, default = TRUE )
# data(iris)
# saveToLocalRepo(iris)
# showLocalRepo()
# showLocalRepo(method = "tags")
# deleteLocalRepo( repoDir = exampleRepoDir, unset = TRUE, deleteRoot = TRUE)
# ## End(Not run)
Run the code above in your browser using DataLab