Description Usage Arguments Details Note Author(s) References See Also Examples
View source: R/push_pull_Repo.R
pushGitHubRepo adds files, commits them and pushes from Local Repository to synchronized GitHub one.
pullGitHubRepo pulls (git pull) changes from remote GitHub Repository to the correspoding Local one.
This function is well explained on this http://r-bloggers.com/r-hero-saves-backup-city-with-archivist-and-github blog post.
1 2 3 4 5 6 7 | pushGitHubRepo(repoDir = aoptions("repoDir"),
commitMessage = aoptions("commitMessage"), repo = aoptions("repo"),
user = aoptions("user"), password = aoptions("password"),
files = c("gallery", "backpack.db"), ...)
pullGitHubRepo(repoDir = aoptions("repoDir"), user = aoptions("user"),
password = aoptions("password"), ...)
|
repoDir |
A character specifing the directory to Local |
commitMessage |
A character denoting a message added to the commit while performing push.
By default specified to |
repo |
A character denoting GitHub repository name and synchronized local existing directory in which an artifact will be saved. |
user |
A character denoting GitHub user name. Can be set globally with |
password |
A character denoting GitHub user password. Can be set globally with |
files |
A character vector containing directories to files that should be commited and pushed. The working directory
is |
... |
Further arguments passed to push or pull. |
To learn more about Archivist Integration With GitHub visit agithub.
To check the status (git status) of the Repository use git2r::status(repository(repoDir)). See examples.
Bug reports and feature requests can be sent to https://github.com/MarcinKosinski/archivist.github/issues
Marcin Kosinski, m.p.kosinski@gmail.com
More about archivist.github can be found on marcinkosinski.github.io/archivist.github/ and about archivist in posts' history on http://pbiecek.github.io/archivist/Posts.html
Other archivist.github: archive,
archivist.github-package,
authoriseGitHub,
cloneGitHubRepo,
createGitHubRepo,
deleteGitHubRepo
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
authoriseGitHub(ClientID, ClientSecret) -> github_token
# authoriseGitHub also does: aoptions("github_token", github_token)
aoptions("user", user.name)
aoptions("password", user.password)
createGitHubRepo("Museum", default = TRUE) # here github_token is used
data(iris)
saveToLocalRepo(iris)
git2r::status(repository('Museum'))
pushGitHubRepo(commitMessage = "add iris")
git2r::status(repository('Museum'))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.