5. Yen Software

There’s a number of software packages available for use on the Yen servers. Here is the current list:

  • anaconda
  • dotnet
  • Google Drive
  • Go
  • Gurobi
  • Intel-python
  • Julia
  • KNitro
  • Mathematica
  • Matlab
  • Microsoft-R
  • mosek
  • R
  • rclone
  • RStudio
  • SAS
  • Singularity
  • Stata
  • Tomlab

Loading the appropriate software

We use Linux module system to load the software into your current environment. Linux modules are used on research servers as well as bigger high performance computing clusters like the Yen10 server at the GSB and Sherlock at Stanford. The advantage of the module system is that as a system user you do not need to install the software yourself nor do you need to mess with setting up the paths correctly. You simply load it and unload it in your current session and the correct paths get added to your environment variables. For software like Python, R and Julia, etc the user still needs to install their own libraries or packages. We will go over the details of how to install packages later in this course. Another advantage of the module system is that several versions of the same sofware can coexist and if your research uses a specific version of software you can stick with it even though the newer versions of that software exist.

See available software

Check the current list of available software and versions on the Yen servers with the following command:

module avail

You should see the following:

-------------------------------------------------- /software/modules/Core ---------------------------------------------------
   R/3.3.0                go/1.13                     julia/1.0.0             microsoft-r-open/3.5.3
   R/3.4.2                gurobi/8.0.1                julia/1.0.2             mosek/
   R/3.5.0                gurobi/9.0.2         (D)    julia/1.2.0             rclone/1.47.0
   R/3.5.3                gurobipy/8.0.1              julia/1.3.1             rstudio/1.1.463
   R/3.6.1         (D)    gurobipy/9.0.2       (D)    julia/1.5.1      (D)    sas/9.4
   R/4.0.0                gurobipy3/8.0.1             knitro/12.0.0           singularity/3.4.0
   anaconda/5.2.0         gurobipy3/9.0.2      (D)    knitro/12.1.1    (D)    statamp/15
   anaconda3/5.2.0        intel/2019.4                mathematica/11.2        statase/15
   dotnet/2.1.500         intel-python/2019.4         matlab/R2018a           tomlab/8.5
   dotnet/3.0.0-p2 (D)    intel-python3/2019.4        matlab/R2018b
   gdrive/2.1.0           julia/0.7.0                 matlab/R2019b    (D)

   D:  Default Module

Use "module spider" to find all possible modules.
Use "module keyword key1 key2 ..." to search for all possible modules matching any of the "keys".

If you are looking for all available R modules, you can filter module avail command as follows:

module avail R/

You should see the list of all avaible R versions that are already installed on the Yen server:

-------------------------------------------------- /software/modules/Core ---------------------------------------------------
   R/3.3.0    R/3.4.2    R/3.5.0    R/3.5.3    R/3.6.1 (D)    R/4.0.0

   D:  Default Module

Use "module spider" to find all possible modules.
Use "module keyword key1 key2 ..." to search for all possible modules matching any of the "keys".

If there are multiple versions of the same sofware, the default version is indicated by a (D) next to the module name. For example, the default R version is currently R/3.6.1. If you are happy with the default version, you can simple type:

module load R

and the default version will be loaded. You can also use the shorthand ml instead of typing module load. If you want to upgrade to newer R version or downgrade to an older R version, you can specify the version number:

ml R/4.0.0

To see currently loaded modules, use:

module list

You should see:

Currently Loaded Modules:
  1) rstudio/1.1.463   2) R/4.0.0

We see that together with R software, the RStudio module is also loaded automatically.

If you want to switch R versions, you can use:

module switch R/3.6.1

Then, run:

module list

You should see:

Currently Loaded Modules:
  1) rstudio/1.1.463   2) R/3.6.1

You can unload an individual module with:

module unload rstudio

Or you can unload all modules that you have currently loaded with:

module purge

Now, if you run

module list

You will see:

No modules loaded

Sometimes you want to know the path where software binary is installed. For example, you might use this information to install some R packages from source. To get details about a currently loaded package, use:

module load R/4.0.0

module show R

This will print the following information that might be useful:

help([[This is R 4.0.0 , "Great Truth"

Try 'R --version'

whatis("Name: R")
whatis("Version: 4.0.0")
whatis("Category: tools")
whatis("URL: http://cran.cnr.berkeley.edu/")
whatis("Description: R")

Linux modules only modify your current working environment which means that if you lose connection to the Yens or close your terminal window, you will need to reload the modules. But all of the libraries or packages that you have installed as a user will persist and only need to be installed once.

Once the sofware you want to use is loaded, the binary is availble for you to use from the command line. For example, if you want to install R packages or run interactive R console, type:


The interactive R console will open with the R version matching the module you have loaded:

R version 4.0.0 (2020-04-24) -- "Arbor Day"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

Type q() to exit out of R:

> q()
Save workspace image? [y/n/c]: n