Last chance! 50% off unlimited learning
Sale ends in
copyToRepo
copies artifact from one Repository to another Repository
.
Functions copyLocalRepo
and copyGithubRepo
copy artifacts from the archivist Repositories stored in a local folder or on Github.
Both of them take md5hash
as a parameter, which is a result from saveToRepo function.
For every artifacts, md5hash
is a unique string of length 32 that comes out as a result of
digest function, which uses a cryptographical MD5 hash algorithm. For more information see md5hash.copyLocalRepo(repoFrom, repoTo, md5hashes)copyGithubRepo(repoTo, md5hashes, user, repo, branch = "master")
copyLocalRepo
.md5hashes
of artifacts to be copied.repoFrom
-Repository is archived.repoFrom
is created.repoFrom
-Repository is archived. Default branch
is master
.copyToRepo
copies artifact from one Repository
to another Repository
. It addes new files
to exising gallery
folder in repoTo
Repository
. copyLocalRepo
copies local Repository
, where
copyGithubRepo
copies Github Repository
.Repository
;
Tags
; archivist-package
;
createEmptyRepo
; deleteRepo
;
loadFromGithubRepo
,
loadFromLocalRepo
; md5hash
;
rmFromRepo
; saveToRepo
;
searchInGithubRepo
,
searchInLocalRepo
;
showGithubRepo
,
showLocalRepo
;
summaryGithubRepo
,
summaryLocalRepo
# creating example Repository - that examples will work
exampleRepoDir <- tempdir()
hashes <- searchInGithubRepo( pattern="name", user="pbiecek", repo="archivist", fixed=FALSE )
createEmptyRepo( exampleRepoDir )
copyGithubRepo( repoTo = exampleRepoDir , md5hashes= hashes, user="pbiecek", repo="archivist" )
# removing an example Repository
deleteRepo( exampleRepoDir )
rm( exampleRepoDir )
Run the code above in your browser using DataLab