createEmptyRepo
creates an empty Repository in a given directory in which archived artifacts will be stored.createEmptyRepo(repoDir, force = TRUE, default = FALSE)
force = TRUE
function call forces to create repoDir
directory if
it did not exist. Default set to force = TRUE
.default = TRUE
then repoDir
is set as default local repository.All artifacts 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, every 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 comes out as a result of
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. (that are remembered as 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, so an artifact is available
immediately in backpack.db
database for other collaborators.
Repository
;
Tags
; %a%
;
addTagsRepo
; ahistory
,
print.ahistory
; aoptions
;
archivist-package
; aread
;
asearch
; cache
;
copyGithubRepo
,
copyLocalRepo
; deleteRepo
;
getTagsGithub
, getTagsLocal
;
loadFromGithubRepo
,
loadFromLocalRepo
; md5hash
;
multiSearchInGithubRepo
,
multiSearchInLocalRepo
,
searchInGithubRepo
,
searchInLocalRepo
;
rmFromRepo
; saveSetToRepo
;
saveToRepo
; setGithubRepo
,
setLocalRepo
;
shinySearchInLocalRepo
;
showGithubRepo
,
showLocalRepo
;
summaryGithubRepo
,
summaryLocalRepo
;
zipGithubRepo
, zipLocalRepo
exampleRepoDir <- tempdir()
createEmptyRepo( repoDir = exampleRepoDir )
# check the state of an empty Repository
summaryLocalRepo( repoDir = exampleRepoDir )
showLocalRepo( exampleRepoDir )
# creating a Repository in non existing directory
createEmptyRepo( "xyzdd234", force = TRUE )
# removing an example Repositories
deleteRepo( exampleRepoDir )
deleteRepo( "xyzdd234" )
rm( exampleRepoDir )
Run the code above in your browser using DataLab