简体   繁体   English

无法在Azure Databricks上安装R包:null TypeError

[英]Cannot install R packages on Azure Databricks: null TypeError

I am trying to install some R CRAN packages on Azure Databricks (for example, the lime package) using the default way (see screenshots below). 我正在尝试使用默认方式在Azure Databricks上安装一些R CRAN软件包(例如, lime软件包)(请参见下面的屏幕截图)。 This fails with slightly different error messages depending on whether I use Firefox or Chrome: 根据我使用的是Firefox还是Chrome,此操作会失败,并显示稍有不同的错误消息:

Error: TypeError: t is null (Firefox) 错误:TypeError:t为空(Firefox)

Error: Uncaught TypeError: Cannot read property 'toLowerCase' of null (Chrome) 错误:未捕获的TypeError:无法读取null的属性“ toLowerCase”(Chrome)

Can anyone reproduce the error or know the reason for this? 任何人都可以重现该错误或知道其原因吗? It might be a problem with the package, or with Databricks... 软件包或Databricks可能有问题...

Screenshot of install: 安装屏幕截图: 在此处输入图片说明

Possibly related question: this one 可能相关的问题: 这个

Through other channels I found out that this is a bug that was accidentally introduced with the most recent DataBricks update (not sure whether it concerns all of Databricks or just Azure Databricks). 通过其他渠道,我发现这是最新DataBricks更新意外引入的错误(不确定是涉及所有Databricks还是仅涉及Azure Databricks)。

The hotfix is to explicitely state which repository you want to use when trying to install an R package, eg 该修补程序用于明确声明您在尝试安装R软件包时要使用的存储库,例如

http://cran.uni-muenster.de/ http://cran.uni-muenster.de/

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

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