从 github 安装软件包时出现以下错误:
> devtools::install_github("pmartinezarbizu/pairwiseAdonis/pairwiseAdonis")
Downloading GitHub repo pmartinezarbizu/pairwiseAdonis@HEAD
Erro: Failed to install 'pairwiseAdonis' from GitHub:
System command 'Rcmd.exe' failed, exit status: -1, stdout + stderr empty
使用 find_rtools,我收到以下消息(我正在阅读这些帖子,但无法解决我的问题:https://github.com/r-lib/devtools/issues/2031 https://github.com/r-lib/devtools/issues/2031 and R CMD 检查不在 Rtools 目录中查找 gcc https://stackoverflow.com/questions/47076620/r-cmd-check-not-looking-for-gcc-in-rtools-directory/47076968#47076968):
> find_rtools(T)
Scanning R CMD config CC...
cc_path:
'' does not exist
Scanning path...
ls: C:\Rtools\bin\ls.exe
gcc_path: C:\Rtools\mingw_64\bin\gcc.exe
VERSION.txt
Rtools version 3.5.0.4
Version: 3.5
Found compatible gcc on path
[1] TRUE
我正在使用 R v.3.6:
> > session_info()
> - Session info -------------------------------------------------------------------------------------
> setting value
> version R version 3.6.3 (2020-02-29)
> os Windows 10 x64
> system x86_64, mingw32
> ui RStudio
> language (EN)
> collate Portuguese_Brazil.1252
> ctype Portuguese_Brazil.1252
> tz America/Sao_Paulo
> date 2020-07-29
如果有人仍然遇到这个问题,我可以使用以下方法解决它pak
包与pkg_install
功能。这可能不适用于所有软件包存储库,但它适用于我需要它的软件包存储库。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)