2017-07-16 104 views
1

我最近下載了新的win10更新,由於某種原因,它的阻止我從R.下載新的軟件包以下是錯誤:[R工作室錯誤

install.packages("dplyr") 

Warning in install.packages : InternetOpenUrl failed: 'A connection with the server could not be established'

這是我的解決方案,沒有工作。從CRAN下載:

name <- ("C:/Program Files/R/R-3.4.1/library") 
download.file("https://cran.r-project.org/package=dplyr", destfile = name) 


Error in download.file("https://cran.r-project.org/package=dplyr", destfile 
= name) :cannot open destfile 'C:/Program Files/R/R-3.4.1/library', reason 
'Permission denied' 

任何解決方案,讚賞。

回答

1

解決方案#1

運行您rStudio以管理員身份

解決方案#2

在R文件夾中更改安全設置爲 「完全控制」

Here你可以看到如何更改文件夾權限

+0

我嘗試了兩種解決方案並得到相同的錯誤。任何其他想法?謝謝 –

+0

可以在下載軟件包之前嘗試運行'options(download.file.method =「libcurl」)',看看你得到了什麼結果? –