setLocalRepo | R Documentation |
setLocalRepo
sets local Repository's global path.
setRemoteRepo
similarly sets Remote Repository's path.
See examples.
setLocalRepo(repoDir)
setPostgresRepo(repoDir, connector = NULL)
setRemoteRepo(user, repo, branch = "master", subdir = "/", repoType = "github")
repoDir |
A character denoting a directory of a Repository that we want to make default. |
connector |
If user want to use some external database instead of SQLite, then the |
user |
While working with the Remote repository. A character containing a name of the Remote user that we want to make default. |
repo |
While working with the Remote repository. A character containing a name of the Remote repository that we want to make default. |
branch |
While working with the Remote repository. A character containing a name of
the Remote Repository's branch that we want to make default. Default |
subdir |
While working with the Remote repository. A character containing a name
of the Repository's directory on Remote that we want to make default.
If the Repository is stored in the main folder on the Remote repository,
this should be set to |
repoType |
A character containing a type of the remote repository. Currently it can be 'github' or 'bitbucket'. |
If you are working on a local Repository and you are tired of specifying repoDir
parameter in every function call that uses this parameter, you can set Repository's path
globally using setLocalRepo
function and omit repoDir
parameter
in future function calls.
If you are working on the Remote Repository and you are tired of specifying user
,
repo
, branch
and subdir
parameters in every function call
that uses these parameters, you can set Remote Repository's path globally using
setRemoteRepo
function and omit user
, repo
, branch
and subdir
parameters in future function calls. See examples.
For local repositories, in this way, in the following function calls:
loadFromLocalRepo,searchInLocalRepo, rmFromLocalRepo, zipLocalRepo,
addTagsRepo, shinySearchInLocalRepo,
getTagsLocal, showLocalRepo, summaryLocalRepo
repoDir
parameter may be omitted.
For remote repositories, in this way,
in the following function calls:
zipRemoteRepo, loadFromRemoteRepo, searchInRemoteRepo,
getTagsRemote, showRemoteRepo, summaryRemoteRepo,
copyRemoteRepo
parameters user
, repo
, branch
, subdir
may be omitted.
Bug reports and feature requests can be sent to https://github.com/pbiecek/archivist/issues
Marcin Kosinski, m.p.kosinski@gmail.com
Przemyslaw Biecek, przemyslaw.biecek@gmail.com
Biecek P and Kosinski M (2017). "archivist: An R Package for Managing, Recording and Restoring Data Analysis Results." _Journal of Statistical Software_, *82*(11), pp. 1-28. doi: 10.18637/jss.v082.i11 (URL: http://doi.org/10.18637/jss.v082.i11). URL https://github.com/pbiecek/archivist
https://github.com/pbiecek/archivist/wiki
Other archivist:
Repository
,
Tags
,
%a%()
,
addHooksToPrint()
,
addTagsRepo()
,
aformat()
,
ahistory()
,
alink()
,
aoptions()
,
archivistPackage
,
aread()
,
areadLocal()
,
asearch()
,
asearchLocal()
,
asession()
,
atrace()
,
cache()
,
copyLocalRepo()
,
createLocalRepo()
,
createMDGallery()
,
deleteLocalRepo()
,
getRemoteHook()
,
getTagsLocal()
,
loadFromLocalRepo()
,
md5hash
,
removeTagsRepo()
,
restoreLibs()
,
rmFromLocalRepo()
,
saveToLocalRepo()
,
searchInLocalRepo()
,
shinySearchInLocalRepo()
,
showLocalRepo()
,
splitTagsLocal()
,
summaryLocalRepo()
,
zipLocalRepo()
Other archivist:
Repository
,
Tags
,
%a%()
,
addHooksToPrint()
,
addTagsRepo()
,
aformat()
,
ahistory()
,
alink()
,
aoptions()
,
archivistPackage
,
aread()
,
areadLocal()
,
asearch()
,
asearchLocal()
,
asession()
,
atrace()
,
cache()
,
copyLocalRepo()
,
createLocalRepo()
,
createMDGallery()
,
deleteLocalRepo()
,
getRemoteHook()
,
getTagsLocal()
,
loadFromLocalRepo()
,
md5hash
,
removeTagsRepo()
,
restoreLibs()
,
rmFromLocalRepo()
,
saveToLocalRepo()
,
searchInLocalRepo()
,
shinySearchInLocalRepo()
,
showLocalRepo()
,
splitTagsLocal()
,
summaryLocalRepo()
,
zipLocalRepo()
Other archivist:
Repository
,
Tags
,
%a%()
,
addHooksToPrint()
,
addTagsRepo()
,
aformat()
,
ahistory()
,
alink()
,
aoptions()
,
archivistPackage
,
aread()
,
areadLocal()
,
asearch()
,
asearchLocal()
,
asession()
,
atrace()
,
cache()
,
copyLocalRepo()
,
createLocalRepo()
,
createMDGallery()
,
deleteLocalRepo()
,
getRemoteHook()
,
getTagsLocal()
,
loadFromLocalRepo()
,
md5hash
,
removeTagsRepo()
,
restoreLibs()
,
rmFromLocalRepo()
,
saveToLocalRepo()
,
searchInLocalRepo()
,
shinySearchInLocalRepo()
,
showLocalRepo()
,
splitTagsLocal()
,
summaryLocalRepo()
,
zipLocalRepo()
## Not run:
## Local version
exampleRepoDir <- tempfile()
createLocalRepo(repoDir = exampleRepoDir)
setLocalRepo(exampleRepoDir)
data(iris)
data(swiss)
# From this moment repoDir parameter may be ommitted in the following functions
saveToRepo(iris)
saveToRepo(swiss)
showLocalRepo()
showLocalRepo(method = "tags")
iris2 <- loadFromLocalRepo( "ff575c2" , value = TRUE)
searchInLocalRepo("name:i", fixed = FALSE)
getTagsLocal("ff575c261c949d073b2895b05d1097c3")
rmFromLocalRepo("4c43f")
showLocalRepo()
summaryLocalRepo()
# REMEMBER that in deleteLocalRepo you MUST specify repoDir parameter!
# deleteRepo doesn't take setLocalRepo's settings into consideration
deleteLocalRepo( exampleRepoDir, deleteRoot=TRUE)
rm( exampleRepoDir )
## Github version
setRemoteRepo( user="MarcinKosinski", repo="Museum", branch="master",
subdir="ex1" )
# From this moment user, repo, branch, subdir parameters may be ommitted
# in the following functions:
showRemoteRepo()
loadFromRemoteRepo( "ff575c261c949d073b2895b05d1097c3")
this <- loadFromRemoteRepo( "ff", value = TRUE)
zipRemoteRepo()
file.remove(file.path(getwd(), "repository.zip")) # We can remove this zip file
searchInRemoteRepo( "name:", fixed= FALSE)
getTagsRemote("ff575c261c949d073b2895b05d1097c3")
summaryRemoteRepo( )
# To use multisearchInRemoteRepo we should use repository with more than one artifact.
setRemoteRepo( user="pbiecek", repo="archivist" )
# From this moment user and repo parameters may be ommitted in the following functions
showRemoteRepo()
searchInRemoteRepo( pattern=c("varname:Sepal.Width", "class:lm", "name:myplot123"),
intersect = FALSE )
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.