我正在尝试在Databricks上安装h2o(R版本)。
我从以下内容开始:
%sh
apt-get install libcurl4-openssl-dev -y
apt-get update -y
apt-get install -y r-cran-jsonlite
一切都很顺利。然后我试着:
install.packages("h2o", type="source", repos=(c("http://h2o-release.s3.amazonaws.com/h2o/latest_stable_R")))
但返回以下错误:
Warning message:
This project is configured to use R version '4.0.4', but '4.2.2' is currently being used.
ERROR: dependency ‘jsonlite’ is not available for package ‘h2o’
* removing ‘/local_disk0/.ephemeral_nfs/envs/rEnv-2a5edebe-8ede-4459-8a8b-72c0047b8a01/h2o’
Installing package into ‘/local_disk0/.ephemeral_nfs/envs/rEnv-2a5edebe-8ede-4459-8a8b-72c0047b8a01’
(as ‘lib’ is unspecified)
trying URL 'http://h2o-release.s3.amazonaws.com/h2o/latest_stable_R/src/contrib/h2o_3.40.0.4.tar.gz'
Content type 'application/x-tar' length 177590345 bytes (169.4 MB)
==================================================
downloaded 169.4 MB
Warning in utils::install.packages(pkgs, ...) :
installation of package ‘h2o’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpXqq9V0/downloaded_packages’
排除故障的最佳方法是什么?
2条答案
按热度按时间9q78igpj1#
您也可以尝试设置多个存储库,例如
这样,R可以在自己的存储库中找到
h2o
包,并从常规CRAN存储库中安装任何依赖项。roejwanj2#
看起来你需要安装R包jsonlite。