if (FALSE) {
# objects preparation
showLocalRepo(method = "md5hashes",
repoDir = system.file("graphGallery", package = "archivist"))
showLocalRepo(method = "tags",
repoDir = system.file("graphGallery", package = "archivist"))
# Tag search, fixed version
searchInLocalRepo( "class:ggplot", repoDir = exampleRepoDir )
searchInLocalRepo( "name:", repoDir = exampleRepoDir )
# Tag search, regex version
searchInLocalRepo( "class", repoDir = exampleRepoDir, fixed = FALSE )
# Github version
# check the state of the Repository
summaryRemoteRepo( user="pbiecek", repo="archivist" )
showRemoteRepo( user="pbiecek", repo="archivist" )
showRemoteRepo( user="pbiecek", repo="archivist", method = "tags" )
# Tag search, fixed version
searchInRemoteRepo( "varname:Sepal.Width", user="pbiecek", repo="archivist" )
searchInRemoteRepo( "class:lm", user="pbiecek", repo="archivist", branch="master" )
searchInRemoteRepo( "name:myplot123", user="pbiecek", repo="archivist" )
# Tag search, regex version
searchInRemoteRepo( "class", user="pbiecek", repo="archivist", fixed = FALSE )
searchInRemoteRepo( "name", user="pbiecek", repo="archivist", fixed = FALSE )
# also on Github
# Remeber to set dateTo parameter to actual date because sometimes we update datasets.
searchInRemoteRepo( pattern = list( dateFrom = "2015-10-01", dateTo = "2015-11-30" ),
user="pbiecek", repo="archivist", branch="master" )
# many archivist-like Repositories on one Remote repository
searchInRemoteRepo( pattern = "name", user="MarcinKosinski", repo="Museum",
branch="master", subdir="ex1", fixed = FALSE )
searchInRemoteRepo( pattern = "name", user="MarcinKosinski", repo="Museum",
branch="master", subdir="ex2", fixed = FALSE )
# multi versions
searchInRemoteRepo( pattern=c("varname:Sepal.Width", "class:lm", "name:myplot123"),
user="pbiecek", repo="archivist", intersect = FALSE )
}
Run the code above in your browser using DataLab