R:无法安装AzureML软件包(R版本3.3.3)
我正在尝试为R安装AzureML包(版本3.3.3),以便能够在Microsoft PowerBI中运行一些R脚本 在控制台中运行R:无法安装AzureML软件包(R版本3.3.3),r,azure,powerbi,R,Azure,Powerbi,我正在尝试为R安装AzureML包(版本3.3.3),以便能够在Microsoft PowerBI中运行一些R脚本 在控制台中运行install.packages(“AzureML”)时,出现以下错误: > install.packages("AzureML") Installing package into ‘C:/Users/MyName/Documents/R/win-library/3.3’ (as ‘lib’ is unspecified) --- Please select a
install.packages(“AzureML”)
时,出现以下错误:
> install.packages("AzureML")
Installing package into ‘C:/Users/MyName/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Warning: unable to access index for repository https://mirrors.ustc.edu.cn/CRAN/src/contrib:
cannot open URL 'https://mirrors.ustc.edu.cn/CRAN/src/contrib/PACKAGES'
Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/src/contrib:
cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES'
Error in readRDS(file) :
cannot read workspace version 3 written by R 3.6.2; need R 3.5.0 or newer
In addition: Warning message:
package ‘AzureML’ is not available (for R version 3.3.3)
Warning: unable to access index for repository https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/3.3:
cannot open URL 'https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/3.3/PACKAGES'
Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.3:
cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.3/PACKAGES'
我在某个地方读到PowerBI不支持R版本>3.3.3,这就是我将自己限制在这一版本的原因
另外,我在其他版本中也尝试了同样的方法,我总是得到这样的信息:
包“AzureML”不可用(适用于R版本3.x.y)
我做错了什么?答案是:
AzureML
包没有发布到CRAN,因此找不到它
解决方法是:
install.packages(“devtools”,type=“win.binary”)
李>
devtools::install_github(“RevolutionAnalytics/AzureML”)
李>
C:\Users\YourUser\Documents\R\win library\3.4
,如果遇到一个错误,说明库
文件夹无法写入,则所有包都可能已保存到该库。复制win library\3.4
中的所有包,并将它们粘贴到C:\Program Files\R\R-3.4.4\library
,这是R library文件夹的默认位置李>
library(“AzureML”)
,测试AzureML是否正确加载李>
AzureML
的R脚本。这一次应该有效