[Share Experiences] deepin20.9上RStudio Server的安装使用
Tofloor
poster avatar
满阶砌
deepin
2023-07-13 19:02
Author
  • R的安装
# 使用sudo命令以管理员权限运行nano编辑器,打开/sources.list文件
sudo nano /etc/apt/sources.list

# 在文件中添加下面一行,指定CRAN镜像源为USTC(中国科学技术大学)
deb http://mirrors.ustc.edu.cn/CRAN/bin/linux/debian/ buster-cran40/

# 使用apt-key命令从keyserver.ubuntu.com获取并导入公钥
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B8F25A8A73EACF41

# 更新软件包列表
sudo apt update

# 安装R语言及其开发环境和依赖库
sudo apt install r-base r-base-dev libatlas3-base

# 参考网址
https://mirrors.tuna.tsinghua.edu.cn/CRAN/
  • RStudio Server的安装
# 使用apt命令安装gdebi-core软件包,用于安装.deb文件及其依赖
sudo apt install gdebi-core

# 使用gdebi命令安装RStudio Server的.deb文件
sudo gdebi rstudio-server-2023.06.1-524-amd64.deb

# 下载RStudio Server的.deb文件,可以从官方网站获取
https://posit.co/download/rstudio-server/
  • RStudio Server的访问
# 访问RStudio Server的Web界面,通过localhost的8787端口, 账号密码默认为系统用户账号密码
http://localhost:8787

# 检查RStudio Server的状态
sudo rstudio-server status

# 停止RStudio Server
sudo rstudio-server stop

# 启动RStudio Server
sudo rstudio-server start
Reply Favorite View the author
All Replies
阿尼樱奈奈
Moderator
2023-07-13 19:06
#1

like

Reply View the author
满阶砌
deepin
2023-07-14 04:42
#2
sudo apt update
sudo apt install gdebi-core

export R_VERSION=4.2.3

cat /etc/debian_version
curl -O https://cdn.rstudio.com/r/debian-10/pkgs/r-${R_VERSION}_1_amd64.deb
sudo gdebi r-${R_VERSION}_1_amd64.deb

/opt/R/${R_VERSION}/bin/R --version

sudo ln -s /opt/R/${R_VERSION}/bin/R /usr/local/bin/R
sudo ln -s /opt/R/${R_VERSION}/bin/Rscript /usr/local/bin/Rscript

https://docs.posit.co/resources/install-r/
还是直接用debian的包方便点

Reply View the author
lyydhy
deepin
2023-08-19 03:45
#3

公钥接收失败 咋搞

gpg: 从公钥服务器接收失败:Server indicated a failure

Reply View the author