Install R Package from .tar.gz

To Install an R Packages from a .tar.gz File

In General

Enter at the R prompt
> library(blockTools, repos = "blockTools_0.6-2.tar.gz")

In case that doesn't work, ...'

On a Mac

  1. (Make sure you have installed Xcode from the Mac App Store, and installed the command line tools from within Xcode.)
  2. Close R
  3. Download the tar.gz onto the Desktop
  4. Open the Terminal application
  5. Enter "R CMD INSTALL Desktop/[pkg.tar.gz]" without the quotation marks, where [pkg.tar.gz] is the full filename of the tar.gz (such as "blockTools_0.5-7.tar.gz")
  6. Open R
  7. Enter at the R prompt
    > library(blockTools)
Then, you can check that you have installed the desired version using
> sessionInfo()

On a PC

See the instructions here.