To install a R package, start by installing the devtools package. The best way to do this is from CRAN, by typing:
install.packages("devtools")
Install the package of interest from GitHub using the following code, where you need to remember to list both the author and the name of the package (in GitHub jargon, the package is the repo, which is short for repository). In this example, we are installing the ConnectednessApproach package created by GabauerDavid.
library(devtools)
install_github("GabauerDavid/ConnectednessApproach")
ConnectednessApproach Tutorial
If you use this package in a scientific publication, I would appreciate if you use the following citation:
@article{gabauer2022,
title={Package ‘ConnectednessApproach’},
author={Gabauer, David},
year={2022}
}