Jupyter Hub - AWS
  • Overview
  • Pre-requisites
  • Disclaimer
  • AWS: Instance Launching
    • Overview
    • Customizing an Instance
    • Assigning an Elastic IP Address
    • Connecting to Your Cloud
    • Ubuntu: Server Update and Add Users
  • Anaconda
    • Overview
    • Anaconda Installation
    • JupyterHub Installation and Configuration
  • R
    • R Installation
    • Update and Install IR Kernel
  • Stata
    • Overview
    • Stata Installation
    • Stata Kernel for Jupyter
  • (Optional) GitHub Extension and Packages
    • GitHub Extension
    • nbgrader
  • (Optional) Add a Custom Domain
    • Overview
    • Adding a Subdomain
  • (Optional) GitHub Authentication
    • Overview
    • Generate Cookie Secret
    • Secure Your Lab
    • Add GitHub Authentication
Powered by GitBook
On this page
  1. R

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:

q()

💡 Install tidyverse and other packages

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

apt install libssl-dev libcurl4-openssl-dev unixodbc-dev libxml2-dev libmariadb-dev libfontconfig1-dev libharfbuzz-dev libfribidi-dev libfreetype6-dev libpng-dev libtiff5-dev libjpeg-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')
PreviousR InstallationNextOverview

Last updated 1 year ago