2017-07-27 22 views
1

在我的Mac上運行[R plotROC包遇事相關ggproto

install.packages("ggplot2", repos = "https://cloud.r-project.org") 
install.packages("plotROC", repos = "https://cloud.r-project.org") 
library(plotROC) 
plotROC::geom_roc() 

中的R導致

> plotROC::geom_roc() 
Error: GeomRoc was built with an incompatible version of ggproto. 
Please reinstall the package that provides this extension. 

我看過相關的一些其他SO員額的 「ggproto」,但沒有建議已經爲我工作,我有點失去了我到目前爲止的嘗試。

plotROC必須是「提供此[ggproto]擴展名的包」嗎?如果是這樣,除了重新安裝之外,還有什麼可以嘗試,如上所示?如果不是,我如何識別需要更新的軟件包?

回答

1

周圍的Googling建議安裝開發版本可能會有所幫助:

devtools::install_github("hadley/ggplot2") 
devtools::install_github("sachsmc/plotROC") 

this related SO answer