我在从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 和 R CMD check not looking for gcc in Rtools directory):
> 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 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
file.path(R.home(), "bin/x64")
。(使用list.files()
命令来确认是否存在Rcmd.exe
文件。) - user2554330devtools
? - MrFlick