Please see this note for how to an R package that is available only on Github.
If it is available on CRAN or in a file format, you can follow this note to install it.