1. Home
  2. Data & Files
  3. Managing files
  4. Installing new R packages

Installing new R packages

Workspaces built-in R console allows users to install packages from the CRAN repository. The list of packages available for installation is updated on a weekly basis.

To list the packages available for installation:

  • Type the command: available.packages()
  • then press the ‘Return’ key

To install a package from the list:

  • Type the command: install.packages(‘[PACKAGE NAME]’)
  • then press the ‘Return’ key

R packages from CRAN can also be installed and used within your R session. The packages are installed using the usual R commands.

More detailed information on these commands are available from the R manuals at CRAN. In some circumstances, packages may fail to install. There are several possible reasons for this:

  • The necessary system requirements aren’t available.
  • The package is incompatible with the version of R running in the console.

If you require access to a specific package that fails to install please contact your organisation's Service Desk.

Updated on June 19, 2019

Was this article helpful?

Related Articles

Not the solution you were looking for?
Click the link below to submit a support ticket