我正在尝试arulesViz
在R-Studio中使用,如果我运行:
library(arulesViz)
我收到以下错误:
库中的错误(arulesViz):没有名为“arulesViz”的包</p>
所以尝试安装它:
install.packages("arulesViz")
收到以下错误和警告:
ERROR: dependency ‘mvtnorm’ is not available for package ‘fpc’
* removing ‘/home/robb/R/x86_64-pc-linux-gnu-library/3.4/fpc’
Warning in install.packages :
installation of package ‘fpc’ had non-zero exit status
ERROR: dependency ‘fpc’ is not available for package ‘dendextend’
* removing ‘/home/robb/R/x86_64-pc-linux-gnu-library/3.4/dendextend’
Warning in install.packages :
installation of package ‘dendextend’ had non-zero exit status
ERROR: dependency ‘dendextend’ is not available for package ‘seriation’
* removing ‘/home/robb/R/x86_64-pc-linux-gnu-library/3.4/seriation’
Warning in install.packages :
installation of package ‘seriation’ had non-zero exit status
ERROR: dependency ‘seriation’ is not available for package ‘arulesViz’
* removing ‘/home/robb/R/x86_64-pc-linux-gnu-library/3.4/arulesViz’
Warning in install.packages :
installation of package ‘arulesViz’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmptN9Ozx/downloaded_packages’
按照这里的建议,我尝试这样运行:
require(devtools)
install_version("arules", version = "1.5-4")
但是我又一次错过了devtools
,所以我尝试安装它并得到相同的警告。我的问题是什么?我以前安装arules
没有问题,我不明白问题可能出在哪里。
我还按照 R-studio 本身的建议安装了以下软件包:
sudo apt install libssl-dev
sudo apt install libcurl4-openssl-dev
但这并不能解决问题。
这是我的输出sessionInfo()
:
R version 3.4.4 (2018-03-15)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.2 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.2.20.so
locale:
[1] LC_CTYPE=it_IT.UTF-8 LC_NUMERIC=C LC_TIME=it_IT.UTF-8
[4] LC_COLLATE=it_IT.UTF-8 LC_MONETARY=it_IT.UTF-8 LC_MESSAGES=it_IT.UTF-8
[7] LC_PAPER=it_IT.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=it_IT.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.4.4 tools_3.4.4