搜索中没有出现任何适用的内容,但是在 R 中安装软件包时遇到了这个错误:
> install.packages("entropy")
Loading required package: stats
Attaching package: ‘zoo’
The following objects are masked from ‘package:base’:
as.Date, as.Date.numeric
Error in eval(expr, envir, enclos) : could not find function "data.table"
Calls: source -> withVisible -> eval -> eval
Execution halted
Warning in install.packages :
installation of package ‘entropy’ had non-zero exit status
现在,我已经data.table
加载了这个正在运行的会话。当我以 root 身份运行另一个 R 会话并安装此包时没有加载新包时,它没有错误地完成,我可以毫无问题地将这个包加载到初始会话中。
这个错误来自哪里,如果我同时data.table
加载它是否会给我可能的错误输出?
编辑:输出conflicts()
:
> conflicts()
[1] "rename" "round_any" "freqs" "show" "plot"
[6] "rootogram" "cloud" "layer" "colsplit" "french_fries"
[11] "melt" "recast" "smiths" "tips" "coef"
[16] "filter" "fitted" "poly" "predict" "plot"
[21] "prompt" "npk" "initialize" "show" "as.Date"
[26] "as.Date.numeric" "body<-" "formals<-" "kronecker"
这个 pastebin提供了已安装软件包的列表,因为它很长。