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

How to format final figures for publication

General figure guidelines File types and file sizes TIFF images with LZW compression to reduce the file size PDF files for vector images Not...