简体   繁体   English

预测包不适用于 Databricks(R 版本 3.5.2)

[英]Forecast package not working on Databricks (R-version 3.5.2)

I installed the 'forecast' package in a Databricks environment a few days back.几天前,我在 Databricks 环境中安装了“预测”包。 It was working fine until this morning when I restarted the cluster.直到今天早上我重新启动集群时它都运行良好。 Now, I can't install the package anymore.现在,我无法再安装该软件包了。 Could someone help with this?有人可以帮忙吗?

Have already tried upgrading the current R version (3.5.2) to the latest (3.6.0).已经尝试将当前的 R 版本 (3.5.2) 升级到最新版本 (3.6.0)。 That would require upgrading the current Ubuntu version too, which I don't think is possible, since that is the version Databricks is linked to.这也需要升级当前的 Ubuntu 版本,我认为这是不可能的,因为那是 Databricks 链接到的版本。 If there's a way to upgrade the Ubuntu version as well, do let me know.如果还有升级 Ubuntu 版本的方法,请告诉我。

Here's a screenshot of the error:这是错误的屏幕截图:

FROM THE SCREENSHOT, The 'quadprog' latest version 1.5-5 supports only >= R-3.6 version as yours is R-3.5.2, I would suggest you to download old binaries from CRAN for quadprog and install (refer Install previous versions of R on ubuntu )从屏幕截图来看,'quadprog' 最新版本 1.5-5 仅支持 >= R-3.6 版本,因为你的是 R-3.5.2,我建议你从 CRAN 下载旧的二进制文件用于 quadprog 并安装(请参阅安装以前版本的R 在 ubuntu 上

After installing quadprog, go for the other packages installation.安装 quadprog 后,去安装其他包。 If same error persists, please repeat above step for that packages too:)如果仍然存在相同的错误,请也对该包重复上述步骤:)

If you are trying this operation through R Console, you can use如果您通过 R 控制台尝试此操作,您可以使用

packageurl <- "https://cran.r-project.org/src/contrib/Archive/quadprog/quadprog_1.5-4.tar.gz"
install.packages(packageurl, repos=NULL, type="source")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM