Simple Git Client for R
To install the development version:
On Linux you need somewhat recent version of libgit2:
On Ubuntu 18.04 and up, the stock version of libgit2 is fine. If you are running ubuntu Xenial or Trusty you need libgit2 backports from my ppa:
sudo add-apt-repository ppa:opencpu/libgit2 sudo apt-get update sudo apt-get install libgit2-dev
It is still possible to install the package with older versions of libgit2 (e.g. on CentOS) however these do not support authentication over ssh/https remotes. Offline functionality should work fine.
This is a basic example:
library(gert) path <- file.path(tempdir(), "ggplot2") repo <- git_clone("https://github.com/hadley/ggplot2", path) print(repo)