唯一更改的是新安装的Anaconda。但是我不认为这是问题。在对R 3.5.1进行新的更新之后,我像往常一样尝试在终端中运行R,得到的结果如下。对我来说,这没有任何意义,因为我安装了devtools,而3.4.3并不是我已经运行了一段时间的版本。它可能是Anaconda中运行的版本,但是我的终端使用它而不是最新版本仍然没有意义。我已经运行ls -l /Library/Frameworks/R.framework/Versions/,它是正确的版本。 R和RStudio运行正常。任何帮助表示赞赏。谢谢
R version 3.4.3 (2017-11-30) -- "Kite-Eating Tree"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin13.4.0 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘devtools’