安装软件包devtools
我收到了以下消息
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’
答案 0 :(得分:2)
我有同样的问题。我认为您的问题是,需要安装最新的Rtools版本。安装Rtools之后,Devtools将正确安装,包括对调用方和processx的依赖关系。因此,请执行以下操作:
现在也应该安装调用程序和processx,就像在库文件夹中看到的那样。