简体   繁体   中英

Cannot Install R Language

I had R 3.6.3 installed recently. Then I installed the new 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. NO change. I also was using RStudio but the R/RGui download appears to be the problem.

Try 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 is free software and comes with ABSOLUTELY NO WARRANTY. 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/ .

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