zipLocalRepo
and zipGithubRepo
create a zip archive from an existing Repository.If the function does not work, it might be a reason of Rtools that are not installed.
To solve this problem follow those
zipLocalRepo(repoDir = NULL, repoTo = getwd(), zipname = "repository.zip")zipGithubRepo(repoTo = getwd(), user = NULL, repo = NULL,
branch = "master", repoDirGit = FALSE, zipname = "repository.zip")
NULL
(by default), uses the repoDir
specified in setLocalRepo.Repository
stored in repoDir
or Github directory.
By default set to working directory (getwd()
)/repo
is created.
By default set to NULL
- see Note
.NULL
- see Note
.branch
is master
.repoDi
zipLocalRepo
and zipGithubRepo
create a zip archive from an existing Repository.
zipLocalRepo
zips local Repository
, zipGithubRepo
zips Repository
stored on Github.Repository
;
Tags
; %a%
;
addTagsRepo
; ahistory
,
print.ahistory
; aoptions
;
archivist-package
; aread
;
asearch
; cache
;
copyGithubRepo
,
copyLocalRepo
;
createEmptyRepo
; deleteRepo
;
getTagsGithub
, getTagsLocal
;
loadFromGithubRepo
,
loadFromLocalRepo
; md5hash
;
multiSearchInGithubRepo
,
multiSearchInLocalRepo
,
searchInGithubRepo
,
searchInLocalRepo
;
rmFromRepo
; saveSetToRepo
;
saveToRepo
; setGithubRepo
,
setLocalRepo
;
shinySearchInLocalRepo
;
showGithubRepo
,
showLocalRepo
;
summaryGithubRepo
,
summaryLocalRepo
Other archivist: Repository
;
Tags
; %a%
;
addTagsRepo
; ahistory
,
print.ahistory
; aoptions
;
archivist-package
; aread
;
asearch
; cache
;
copyGithubRepo
,
copyLocalRepo
;
createEmptyRepo
; deleteRepo
;
getTagsGithub
, getTagsLocal
;
loadFromGithubRepo
,
loadFromLocalRepo
; md5hash
;
multiSearchInGithubRepo
,
multiSearchInLocalRepo
,
searchInGithubRepo
,
searchInLocalRepo
;
rmFromRepo
; saveSetToRepo
;
saveToRepo
; setGithubRepo
,
setLocalRepo
;
shinySearchInLocalRepo
;
showGithubRepo
,
showLocalRepo
;
summaryGithubRepo
,
summaryLocalRepo
# objects preparation
# data.frame object
data(iris)
# ggplot/gg object
library(ggplot2)
df <- data.frame(gp = factor(rep(letters[1:3], each = 10)),y = rnorm(30))
library(plyr)
ds <- ddply(df, .(gp), summarise, mean = mean(y), sd = sd(y))
myplot123 <- ggplot(df, aes(x = gp, y = y)) +
geom_point() + geom_point(data = ds, aes(y = mean),
colour = 'red', size = 3)
# lm object
model <- lm(Sepal.Length~ Sepal.Width + Petal.Length + Petal.Width, data= iris)
# Local version
exampleRepoDir <- tempdir()
createEmptyRepo( repoDir = exampleRepoDir )
saveToRepo( myplot123, repoDir=exampleRepoDir )
saveToRepo( iris, repoDir=exampleRepoDir )
saveToRepo( model, repoDir=exampleRepoDir )
zipLocalRepo( exampleRepoDir )
deleteRepo( exampleRepoDir )
rm( exampleRepoDir )
# Github version
zipGithubRepo( user="MarcinKosinski",
repo="Museum", branch="master", repoDirGit="ex1" )
zipGithubRepo( user="pbiecek", repo="archivist", repoTo = getwd( ) )
Run the code above in your browser using DataLab