How to install an R package available only on Github

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.