


You can simply install the R programming language by using the given command in your terminal – sudo apt install r-base -y Install a recent version of R on your systemīefore you run the command to install RStudio Server, make sure you have R programming is installed on your system.You should have root access to the system.A system with a recent version of the Ubuntu server (here I will use Ubuntu server 20.04 LTS ) installed on it.One with the R benchmarking script from (version 2.5): R benchmarks ()Īnother with my personal Rpackage that heavily relies on Rcpp and Rcpparmadillo. For R on WSL2-CL, I just used it out of box as it already offers R with openblas. For R on WSL2-Ubuntu, I did something to use openblas in R. Running R on WSL2-Ubuntu was faster than running R on WSL2-CL.Of course, you can always use Rscript to run your script from the command line.

Then, the following command will open Rstudio sudo rstudio Run any Linux distribution on WSL - Case: Clear Linux OS and its Gnome desktop - Technically Impossible (hatenablog.jp) I was able to turn on GUI following the instruction from (“To run Gnome desktop on Clear Linux”): (Method 2) Running Rstudio via X11 forwarding: Then, Rstudio will appear on your browser. Then, on your browser (on Windows), go to localhost:8787 (Method 1) Rstudio-server: /usr/lib64/R/rstudio-server/bin/rserver There are at least two ways to run Rstudio (wsl2 on Windows 10) Let me close this thread by summarizing what I did below for those who do not know nothing about Linux but who want to check out and use Rstudio in CL on wsl2:
