Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the command to invoke RStudio from Command Line in linux environment?

Tags:

linux

r

rstudio

I am looking for the command to invoke RStudio from Linux. I VNC into the linux system and don't see any other option to launch RStudio from the gnome-terminal. I know R files can be directly read in the terminal, but I searched and couldn't find any command to invoke RStudio.

like image 706
Surya Ramaraj Avatar asked Oct 31 '25 00:10

Surya Ramaraj


1 Answers

Are you referring to the RStudio desktop version, or the server instance? The former is started by just calling rstudio:

edd@rob:~$ type -p rstudio
/usr/bin/rstudio
edd@rob:~$

The latter is always running and started as system process:

edd@rob:~$ systemctl status rstudio-server
● rstudio-server.service - RStudio Server
   Loaded: loaded (/etc/systemd/system/rstudio-server.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2018-07-15 20:12:01 CDT; 1 weeks 1 days ago
 Main PID: 1665 (rserver)
    Tasks: 3 (limit: 4915)
   CGroup: /system.slice/rstudio-server.service
           └─1665 /usr/lib/rstudio-server/bin/rserver

Jul 15 20:12:00 rob systemd[1]: Starting RStudio Server...
Jul 15 20:12:01 rob systemd[1]: Started RStudio Server.
edd@rob:~$

If you want to access the latter you do not need VNC. Just point your browser at port 8787 on that machine.

like image 138
Dirk Eddelbuettel Avatar answered Nov 01 '25 15:11

Dirk Eddelbuettel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!