无法在Windows 8操作系统中安装R包'dplyr'

时间:2017-03-18 15:00:57

标签: r rstudio

> install.packages("dplyr")
如果安装包,

下面会出现错误消息。我正在尝试通过R stdio和R控制台,并从两个案件面临这个问题。此外,我更改了全局选项“使用Internet Explorer库/代理HTTP”

              cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES'
            Installing package into ‘C:/Users/User/Documents/R/win-library/3.3’
            (as ‘lib’ is unspecified)
            Warning in install.packages :
              InternetOpenUrl failed: ' ⎈ÿ'
            Warning in install.packages :
              InternetOpenUrl failed: ' ⎈ÿ'
            Warning in install.packages :
              unable to access index for repository http://cran.rstudio.com/src/contrib:
              cannot open URL 'http://cran.rstudio.com/src/contrib/PACKAGES'
            Warning in install.packages :
              InternetOpenUrl failed: ' ⎈ÿ'
            Warning in install.packages :
              InternetOpenUrl failed: ' ⎈ÿ'
            Warning in install.packages :
              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'
            Warning in install.packages :
              package ‘dplyr’ is not available (for R version 3.3.3)
            Warning in install.packages :
              InternetOpenUrl failed: ' ⎈ÿ'
            Warning in install.packages :
              InternetOpenUrl failed: ' ⎈ÿ'
            Warning in install.packages :
              unable to access index for repository http://cran.rstudio.com/bin/windows/contrib/3.3:
              cannot open URL 'http://cran.rstudio.com/bin/windows/contrib/3.3/PACKAGES'
            Warning in install.packages :
              InternetOpenUrl failed: ' ⎈ÿ'
            Warning in install.packages :
              InternetOpenUrl failed: ' ⎈ÿ'
            Warning in install.packages :
              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'

2 个答案:

答案 0 :(得分:1)

我遇到了你现在面临的类似问题。当我尝试安装升级版本(3.2.5)时,问题就出现了。我应用了一些技巧组合。但我认为用以下方法更换回购品对我有用。试一试。

  1. 授予R和RStudio管理权限>> “以管理员身份运行”

    - Or, Permanently Change: Using properties and Compatibility
    
  2. 取消选中“在RStudio中使用Internet Explorer库/代理进行HTTP”并重启。

  3. 没必要:

    1. 如果您想更改回购:

      install.packages("dplyr", dependencies=TRUE, repos='http://cran.rstudio.com/')

    2. 我正在使用RStudio版本0.99.491 R版本3.2.5(2016-04-14) 平台:x86_64-w64-mingw32 / x64(64位) 运行于:Windows 7 x64(版本7600)

答案 1 :(得分:1)

Finall我已经通过使用默认下载方法解决了这个问题" libcurl"

options(download.file.method="libcurl")