简体   繁体   English

无法安装 R 语言

[英]Cannot Install R Language

I had R 3.6.3 installed recently.我最近安装了 R 3.6.3。 Then I installed the new R 4.0.0.然后我安装了新的 R 4.0.0。 I asked for the version at the command prompt and got back:我在命令提示符处询问版本并返回:

--------
r : Cannot locate the history for command line --version.
At line:1 char:1
+ r --version
+ ~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (--version:String) [Invoke-History], ArgumentException
    + FullyQualifiedErrorId : InvokeHistoryNoHistoryForCommandline,Microsoft.PowerShell.Commands.InvokeHistoryCommand
---------

I tried everything to fix it.我尝试了一切来修复它。 Deleting everything R and then installing.删除所有 R 然后安装。 NO change.没变。 I also was using RStudio but the R/RGui download appears to be the problem.我也在使用 RStudio 但 R/RGui 下载似乎是问题所在。

Try R --version试试 R --version

R version 3.6.1 (2019-07-05) -- "Action of the Toes" Copyright (C) 2019 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit) R 版本 3.6.1 (2019-07-05) -- "Action of the Toes" Copyright (C) 2019 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64)

R is free software and comes with ABSOLUTELY NO WARRANTY. R 是免费软件,绝对不提供任何担保。 You are welcome to redistribute it under the terms of the GNU General Public License versions 2 or 3. For more information about these matters see https://www.gnu.org/licenses/ .欢迎您根据 GNU 通用公共许可证版本 2 或 3 的条款重新分发它。有关这些事项的更多信息,请参阅https://www.gnu.org/licenses/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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