2
我正嘗試安裝mxnet以便在Windows 10筆記本電腦上使用R Studio。在mxnet上安裝錯誤
我用這些instuctions:
install.packages("drat", repos="https://cran.rstudio.com")
drat:::addRepo("dmlc")
install.packages("mxnet")
但當我嘗試這個辦法:
require(mxnet)
我得到的錯誤信息:
Loading required package: mxnet
Error : object ‘combine_edges’ is not exported by 'namespace:DiagrammeR'
下面是完整的控制檯:
> install.packages("drat", repos = "https://cran.rstudio.com")
Installing package into ‘C:/Users/bill_/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/drat_0.1.2.zip'
Content type 'application/zip' length 73095 bytes (71 KB)
downloaded 71 KB
package ‘drat’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\bill_\AppData\Local\Temp\RtmpIDZk6c\downloaded_packages
> drat:::addRepo("dmlc")
> install.packages("mxnet")
Installing package into ‘C:/Users/bill_/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
trying URL 'https://dmlc.github.io/drat/bin/windows/contrib/3.3/mxnet_0.7.zip'
Content type 'application/zip' length 5196542 bytes (5.0 MB)
downloaded 5.0 MB
package ‘mxnet’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\bill_\AppData\Local\Temp\RtmpIDZk6c\downloaded_packages
> require(mxnet)
Loading required package: mxnet
Error : object ‘combine_edges’ is not exported by 'namespace:DiagrammeR'
>
任何人都可以幫忙嗎?
在此先感謝。
發現的解決方案PER斧頭兵的建議...
# version 0.9.0 of DiagrammeR won't work with mxnet at this time (20170104)
require(devtools)
install_version("DiagrammeR", version = "0.8.1", repos = "http://cran.us.r-project.org")
'DiagrammeR'昨天得到了一個更新,它打破了很多依賴。新的二進制文件還沒有出來。檢查你的'mxnet'和'Diagrammer'版本是否兼容。 – Axeman
謝謝Axeman!那我永遠不會發現我的錯誤! :-)任何想法,當新的二進制文件將出局? –
快速檢查顯示'combine_edges'是'DiagrammeR'的舊版本,所以我猜你已經有了新版本(0.9.0)。我認爲你需要降級。你應該讓'mxnet'的維護者知道,因爲它們[未列出](https://cran.r-project.org/web/packages/DiagrammeR/index.html)作爲反向依賴並且可能不知道更新。 – Axeman