How to install RStudio on a Chromebook


Today we are looking at how to install RStudio and R base on a Chromebook.  Please follow the video/audio guide as a tutorial where we explain the process step by step and use the commands below.

This tutorial will only work on Chromebooks with an Intel or AMD CPU (with Linux Apps Support) and not those with an ARM64 architecture CPU.

If you have any questions, please contact us via a YouTube comment and we would be happy to assist you!

Please take note that with the release of Chrome OS 90,  the location of Linux Apps has been changed in the Chromebook’s settings.  Have a look at this tutorial, to see how to turn on Linux apps and then continue with the installation tutorial.

Commands Used:
1) echo "deb http://cloud.r-project.org/bin/linux/debian buster-cran40/" | sudo tee /etc/apt/sources.list.d/r.list
2) sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FCAE2A0E115C3D8A
3) sudo apt update
4) sudo apt install r-base libnss3
5) wget https://download1.rstudio.org/desktop/bionic/amd64/rstudio-1.4.1106-amd64.deb
6) sudo dpkg -i rstudio-1.4.1106-amd64.deb
7) sudo apt -f install


Official Site:

All Currently Supported Chromebooks with Linux Apps (Crostini) support


Have a look at our Chromebook comparison and Buyers Guide!

Join our mailing list to be notified about all major Chromebook Sales.

Comments

  1. This worked for me. Thanks for posting! I do not know anything about Linux, but wanted to run R Studio on my Chromebook.

    ReplyDelete
  2. Thanks so much. Worked fine for me.

    ReplyDelete
  3. Thank you. But you should install rstudio-1.4.1717-amd64.deb instead of rstudio-1.4.1106-amd64.deb if you want to use ggplot2 package in RStudio.

    ReplyDelete
    Replies
    1. Just change #5 to: wget https://download1.rstudio.org/desktop/bionic/amd64/rstudio-1.4.1717-amd64.deb

      Delete
    2. Change #6 to: sudo dpkg -i rstudio-1.4.1717-amd64.deb

      Delete
    3. I don't know why but it won't work for me either way.

      Delete
  4. Great work!!! the only post that actually worked for me, thanks.

    ReplyDelete
  5. This was EXTREMELY helpful and allowed me to install both RStudio and R base on my Chromebook.

    Question: Do you have similar install steps for installing RTools?

    ReplyDelete
  6. /usr/lib/rstudio/bin/rsession: error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory I keep getting this error message. Does anyone know how to fix it

    ReplyDelete

Post a Comment