The cavax package contains data on vaccination exemption rates in California kindergartens.

Installation

cavax is a data package containing a dataset of PBE vaccination exemption rates in California Kindergartens in 2014-15. There are two ways to install it.

Install direct from GitHub

You can install the beta version of cavax from GitHub with:

Installation using drat

While using install_github() works just fine, it would be nicer to be able to just type install.packages("cavax") or update.packages("cavax") in the ordinary way. We can do this using Dirk Eddelbuettel’s drat package. Drat provides a convenient way to make R aware of package repositories other than CRAN.

First, install drat:

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

Then use drat to tell R about the repository where cavax is hosted:

You can now install cavax:

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

With that in place you’ll be able to do install.packages("cavax") or update.packages("cavax") and have everything work as you’d expect.

Note that the drat repository only contains data packages that are not on CRAN, so you will never be in danger of grabbing the wrong version of any other package.