在搜索中没有任何适用的内容,但在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"
已安装的软件包列表位于this pastebin,因为它很长。