Experimental new git client for R
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.



Simple Git Client for R

Project Status: Active – The project has reached a stable, usable state and is being actively developed. Build Status AppVeyor Build Status CRAN_Status_Badge


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:

path <- file.path(tempdir(), "ggplot2")
repo <- git_clone("https://github.com/hadley/ggplot2", path)