Update and Install IR Kernel

Update all packages in the current environment to the latest version, without prompts for permission:

update.packages(ask = FALSE)

Install IRkernel for all users:

install.packages('IRkernel', lib = '/usr/local/lib/R/site-library')

Make the IRkernel available to Jupyter. For system-wide installation, set user to False in the installspec command:

IRkernel::installspec(user = FALSE)

When ready, quit:


💡 Install tidyverse and other packages

Additional Ubuntu linux packages are needed for 'tidyverse' in R. In Ubuntu terminal:

apt install libcurl4-openssl-dev libssl-dev libxml2-dev

In R, install tidyverse for all users:

install.packages("tidyverse", dependencies = TRUE, INSTALL_opts = '--no-lock')

There are other useful R packages that one can install, for example:

install.packages("openxlsx", lib = '/usr/local/lib/R/site-library', dependencies = TRUE, INSTALL_opts = '--no-lock')
install.packages("knitr", lib = '/usr/local/lib/R/site-library', dependencies = TRUE, INSTALL_opts = '--no-lock')