R Data Packages on github.com/kjhealy


Where am I? What is this?

This repository contains the latest versions of my R packages that aren’t suitable for CRAN. At present, that’s the following data packages:

These are all data packages, which is what makes them unsuitable for hosting CRAN. The benefit of a drat archive like this is that you can install and upgrade non-CRAN packages directly from R using the standard install.packages() and update.packages() functions. What you need to do is, install drat and then use it to make R aware of this repository. Like so:

if (!require("drat")) {
    install.packages("drat")
    library("drat")
}
drat::addRepo("kjhealy")

Once you’ve done that, you can then do this, for example:


install.packages("nycdogs")

To ensure that this drat repository is always available to you in R, you can add the following line to your .Rprofile or .Rprofile.site file:

drat::addRepo("kjhealy")

This will allow you to use, e.g., install.packages("nycdogs") or update.packages("nycdogs").

Learn More

For more on using drat (a package by Dirk Eddelbuettel), see this vignette.