September 28, 2021

Updating RStudio server on Ubuntu server 20.04.2 LTS

Problem: R version 4.1.1 crashes when creating plots with ggplot2 and RStudio server version 4.1.1106. 

  • Downgrading to R 4.0.5 apparently works.
  • Adding x11() in front of the plot code may work as well.
  • Updating RStudio server is supposed to work as well.

How to update RStudio server:

sudo apt-get install gdebi-core

wget https://download2.rstudio.org/server/bionic/amd64/rstudio-server-2021.09.0%2B351-amd64.deb 

sudo gdebi rstudio-server-2021.09.0+351-amd64.deb

sudo ufw allow 8787/tcp #optional, skip if you haven't enabled firewall yet


Result: Yes, updating RStudio server worked for me. 

No comments:

Post a Comment

Setting up Ubuntu 24.04.x LTS desktop and server, RStudio server, and JypyterLab at home

Why?  Set up a Linux server computer on a home network if: You want to run code that takes a long time to complete. Let it run on the server...