0
我試圖install.packages("RMySQL")
和它運行的第二和接着說:錯誤install.packages:不能去除包之前安裝「DBI」
錯誤install.packages:不能包的除去之前安裝' DBI」
我做remove.packages("DBI")
和它說:
remove.packages( 「DBI」) 刪除包從 '/Library/Frameworks/R.framework/Versions/3.2/Resources/library' (如 'LIB' 是不確定的)
然後我重試install.packages("RMySQL")
和它說:
錯誤install.packages:無法刪除之前安裝的包'DBI'
DBI依賴關係實際上並未被刪除或其他東西。或者我可能把它從錯誤的地方移走了?我很困惑。
你確定你刪除'DBI'?如果你嘗試'require(DBI)',會發生什麼? – nicola
你嘗試在運行'remove.packages'後重啓你的R會話嗎? – jsta
我最好的猜測是'DBI'連接到你的會話,並且在連接時可能無法刪除。您可以嘗試重新啓動您的R會話,但不附帶任何軟件包,或運行'detach(「package:DBI」,unload = TRUE)''。然後'install.packages'應該可以工作。 – Benjamin