在ubuntu上安装Rstudio笔记

1.E: 无法定位软件包问题

https://blog.csdn.net/beizhengren/article/details/77678603

修改source.list文件,其中出现了deb url这样类似命令的内容

2.deb是什么?

https://ubuntuqa.com/article/1249.html

它不是一个命令,而是在sources.list文件中用于指示Debian软件存储库。

如果我在sources.list中有deb http://archive.ubuntu.com/ubuntu/ quantal main restricted,它说我有一个基于“http://archive.ubuntu.com/ubuntu/”的Debian存档,分发是”quantal”,组件是”main”和”restricted”。

3.下载安装R

https://docs.rstudio.com/resources/install-r/

但是在运行

curl -O https://cdn.rstudio.com/r/ubuntu-1804/pkgs/r-${R_VERSION}_1_amd64.deb
sudo gdebi r-${R_VERSION}_1_amd64.deb

出现了:软件包可能已被破坏,或者不允许您打开此文件。检查文件的权限。

未找到合适的解决办法,本来是安装R=4.0版本的,现在就安装3.6.5吧,下载好deb文件后,仍旧报同样的错误。

那么首先通过https://www.howtoing.com/how-to-install-r-on-ubuntu-18-04,

sudo apt install r-base

安装了4.0.3,默认最新版本的R

4.安装Rstudio

https://rstudio.com/products/rstudio/download-server/debian-ubuntu/

sudo apt-get install gdebi-core
wget https://download2.rstudio.org/server/bionic/amd64/rstudio-server-1.3.1093-amd64.deb
sudo gdebi rstudio-server-1.3.1093-amd64.deb

访问http:ip:8787就可以了!

5.linux安装Rstudio server

https://rstudio.com/products/rstudio/download-server/debian-ubuntu/, 这个是安装教程。

RStudio Server 是什么?https://github.com/wangyuchen/rserver-manual/blob/master/01_r_and_rstudio-server.md

RStudio Server 是一个 Linux 服务器上的应用程序,提供了在服务器上运行的 R 环境,而用户通过浏览器来访问。 

6.命令行操作

转自:https://www.cnblogs.com/wulilichao/p/13512903.html

6.1 启动Rstudio-server

rstudio-server start #启动
rstudio-server stop #停止
rstudio-server restart #重启

6.2 查看运行中R进程

rstudio-server active-sessions

 

posted @ 2020-11-04 11:17  lypbendlf  阅读(511)  评论(0编辑  收藏  举报