Ryan T. Moore
  • Home
  • CV
  • Research
  • Software
  • Teaching
  • Contact
  • ORCID

On this page

  • In general
  • On a Mac
  • On a PC

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

  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 brackets), where [pkg.tar.gz] is the full filename of the tar.gz (such as blockTools_0.5-7.tar.gz).

  6. Open R.

  7. At the R prompt:

    library(blockTools)

Then check that you have installed the desired version using:

sessionInfo()

On a PC

See the instructions here.

© 2002–2026 Ryan T. Moore

 

Built with Quarto · Source