The goal of ghentr is to make it easier for you to build and share a private package-ecosystem using your instance of GitHub Enterprise.
You are likely already using the functions
usethis::use_github() to interact with
github.com. If you have an instance GitHub Enterprise (GHE), you can also use these functions with GHE.
Let's say that you work for Acme Corporation, and that Acme has its own instance of GHE. At present, you could install a package using the
host argument with
devtools::install_github("user/repo", host = "github.acme-corp.com/api/v3")
In time, it may become tiresome to add the host argument each time you want to install a package from GHE. Instead, it might be handy to create a function to do this for you, then put that function into a package that you can use and make available to your colleagues. This is what ghentr helps you to do.
Assuming you create a package called acmetools, you can use templating functions in ghentr to add a function to acmetools that would allow you to use syntax like this:
# wraps devtools::install_github() acmetools::install_github_acme("user/repo")
There are two ways ghentr can help you work with GitHub Enterprise:
To make functions that wrap
usethis::use_github(), described in an article.
Here are the slides (PDF) from a presentation given at rstudio::conf(2018).
You can install ghentr from GitHub with:
# install.packages("devtools") devtools::install_github("ijlyttle/ghentr")
Code of Conduct
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.