简体   繁体   中英

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

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.

Have you tried to launch it from here ?

/usr/bin/rstudio

PS : You need R to be installed on the system too.

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.

在Arch上命令是

rstudio-bin

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM