欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

解决R语言bug "sh "不被识别为内部或外部命令

最编程 2024-10-02 13:07:56
...

安装源码包‘httr2’

trying URL ‘https://cran.rstudio.com/src/contrib/httr2_1.0.5.tar.gz’
Content type ‘application/x-gzip’ length 230632 bytes (225 KB)
downloaded 225 KB

  • installing source package ‘httr2’ …
    ** package ‘httr2’ successfully unpacked and MD5 sums checked
    ** using staged installation
    ‘sh’ is not recognized as an internal or external command,
    operable program or batch file.
    Warning in system2(file.path(R.home(“bin”), “Rcmd.exe”), c(“config”, x), :
    running command ‘“C:/PROGRA~1/R/R-4.4.1patched/bin/x64/Rcmd.exe” config CC’ had status 1
    ‘sh’ is not recognized as an internal or external command,
    operable program or batch file.
    Warning in system2(file.path(R.home(“bin”), “Rcmd.exe”), c(“confi