如果正在运行,我尝试在 R-Studio 中使用arulesViz
:
library(arulesViz)
我收到以下错误:
库(arulesViz)中的错误:没有名为“ arulesViz”的软件包。
因此尝试安装它:
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’
根据建议here,我试图这样运行:
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