ghrr drat (original) (raw)
GitHub Hosted R Repository ("ghrr") repository serving R packages via drat.
Method One: Install the drat CRAN package viainstall.packages("drat", repos="https://cloud.r-project.org") and add drat:::add("ghrr") to either .Rprofile file or to Rprofile.site and that's it. Now install.packages() or update.packages() will use this drat repo.
Method Two: Pass the repo information to install.packages(): install.packages("minm", repos=c("https://ghrr.github.io/drat", "https://cloud.r-project.org")) This also passes the CRAN repo information on in case other depencies are needed; one can add BioConductor or other repos as needed too. And it works the same for update.packages().
Learn more about drat at the package documentation site which includes several vignettes.