安装软件包devtools I获得了以下消息
There are binary versions available but the source versions are later:
binary source needs_compilation
processx 3.3.1 3.4.0 TRUE
callr 3.2.0 3.3.0 FALSE此外:
* installing *source* package 'callr' ...
** package 'callr' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck =
vI[[j]]) :
namespace 'processx' 3.3.1 is being loaded, but >= 3.4.0 is required和
ERROR: lazy loading failed for package 'callr'
* removing 'C:/Users/Standard/Documents/R/win-library/3.6/callr'
Warning in install.packages :
installation of package ‘callr’ had non-zero exit status然后我尝试更新processx包,希望它能够解决这个问题:
install.packages("processx")
library(processx)RStudio让我重新启动R会话,但是
> install.packages("devtools")
ERROR: lazy loading failed for package 'callr'
* removing 'C:/Users/Standard/Documents/R/win-library/3.6/callr'
Warning in install.packages :
installation of package ‘callr’ had non-zero exit status我做错了什么?
编辑我尝试以这种方式安装processx和callr及其依赖项
install.packages("processx", dependencies=TRUE)
library(processx)
install.packages("callr", dependencies=TRUE)
library(callr)但我得到了这样的信息:
Error in library(callr) : there is no package called ‘callr’发布于 2019-07-06 11:41:49
我也有同样的问题。我认为您的问题是,需要安装最新的Rtools版本。Devtools将在安装Rtools之后正确安装,包括对callr和processx的依赖关系。以下几点也是如此:
现在,也应该安装callr和processx,就像您在库文件夹中看到的那样。
https://stackoverflow.com/questions/56888506
复制相似问题