Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To find what packages are installed under a specific version of R you can use the following steps:

Option 1 – Within the R prompt

  1. Module load the version of R you want to use

  2. Load R with the command 'R'

    1. Code Block
      ip <- as.data.frame(installed.packages()[,c(1,3:4)])
      rownames(ip) <- NULL
      ip <- ip[is.na(ip$Priority),1:2,drop=FALSE]
      print(ip, row.names=FALSE)
  3. A list of packages will output to the screen

Option 2

You can check the R libraries under the following path to on the cluster

...

– From the filesystem

We have provided a script that runs option 1 from the bash prompt:

rpkg <version> [pkg1] ... [pkgN]

where the version is required (e.g. 3.6.2) and the package list is optional. With no explicit packages, all of the installed packages are printed to the terminal.