Install an R Package from a .tar.gz file
In general
At the R prompt:
library(blockTools, repos = "blockTools_0.6-2.tar.gz")In case that doesn’t work, follow the platform-specific instructions below.
On a Mac
Make sure you have installed Xcode from the Mac App Store, and installed the command line tools from within Xcode.
Close R.
Download the
.tar.gzonto the Desktop.Open the Terminal application.
Enter
R CMD INSTALL Desktop/[pkg.tar.gz](without the brackets), where[pkg.tar.gz]is the full filename of the tar.gz (such asblockTools_0.5-7.tar.gz).Open R.
At the R prompt:
library(blockTools)
Then check that you have installed the desired version using:
sessionInfo()