createLocalRepo creates an empty Repository in the given directory in which archived artifacts will be stored.
createLocalRepo(repoDir, force = TRUE, default = FALSE)createEmptyRepo(...)
A character that specifies the directory for the Repository which is to be made.
If 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.
If default = TRUE then repoDir is set as default Local Repository.
All arguments are being passed to createLocalRepo.
At least one Repository must be initialized before using other functions from the archivist package. While working in groups, it is highly recommended to create a Repository on a shared Dropbox/GitHub folder.
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.
Other 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
Other 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)
# }
Run the code above in your browser using DataLab