【问题标题】:Rstudio can't find devtoolsRstudio 找不到开发工具
【发布时间】:2016-10-21 17:35:20
【问题描述】:

我正在尝试安装 R devtools,但 RStudio 找不到该库。我遇到了this SO postthis github discussion,它们一起可能意味着这是一个 Cygwin 问题,但我尝试卸载 git(以及我的 Cygwin 副本)并重新安装 Rtools,但没有成功。有没有人有其他尝试的想法?

我的系统:

  • 安装了 GIT bash 的 Windows 10(因此也安装了 Cygwin)
  • RStudio 版本 0.99.902
  • R 版本 3.3
    > install.packages("devtools")
    > library(devtools)
    > find_rtools(T)
    Error: running command '"C:/PROGRA~1/R/R-33~1.0/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD config CC' had status 127
    

    我的路径(来自 RStudio):

    > Sys.getenv()['PATH']
    PATH                                           C:\Program
                                                   Files\R\R-3.3.0\bin\x64;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
                                                   Files\Git\cmd;C:\cygwin32;C:\Program Files\Git\mingw64\bin;C:\Program
                                                   Files\Git\usr\bin;C:\Users\king\Desktop\_REPOS\misc\stock_analysis\forex\oanda\ruby;C:\Users\king\.dnx\bin;C:\Program
                                                   Files\Microsoft DNX\Dnvm\;C:\Ruby22-x64\bin
    
  • 【问题讨论】:

      标签: r git rstudio


      【解决方案1】:

      我遇到了同样的问题,下面的instructions 解决了我的问题。我不确定了,但我也认为我必须设置.libPaths() = “C:/R/R-3.2.2/library”(在 Windows 上)

      【讨论】:

      • 就我而言,我只需要再次安装 RTools,无需修改 .libPaths()
      猜你喜欢
      • 1970-01-01
      • 2017-10-28
      • 1970-01-01
      • 2023-03-07
      • 2019-05-09
      • 2020-10-20
      • 1970-01-01
      • 2015-10-17
      • 2015-05-03
      相关资源
      最近更新 更多