[英]Unable to update to latest version of R
I am trying to update to R version 3.5.3, by using the R manual. 我正在尝试使用R手册更新到R版本3.5.3。 However, when I type this line: 但是,当我键入以下行时:
deb https://cloud.r-project.org/bin/linux/ubuntu cosmic-cran35/ deb https://cloud.r-project.org/bin/linux/ubuntu cosmic-cran35 /
I get a return of command not found. 我收到未找到的命令返回。
I tried to add it to my source list as previously suggested, but this does not seem to work. 我试图按照先前的建议将其添加到我的源列表中,但这似乎不起作用。 I am trying to do this on a linux system 我正在尝试在Linux系统上执行此操作
Edit: Thanks @Ralf for correction (see comments) 编辑:感谢@ Ralf的更正(请参阅评论)
Append the ' deb
' line to your sources.list
by opening a terminal and typing: 通过打开终端并输入以下命令,将' deb
'行添加到您的sources.list
:
echo "deb https://cloud.r-project.org/bin/linux/ubuntu cosmic-cran35/" | sudo tee -a /etc/apt/sources.list
Install the R-CRAN GPG key to verify what you're installing: 安装R-CRAN GPG密钥以验证要安装的内容:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
Update your package list and install with: 更新您的软件包列表并安装:
sudo apt update
sudo apt install r-base r-base-dev
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.