我正在尝试在 R 3.5.1 的 Windows 10 上从 github 安装 mvabund 包(github 版本的功能在 cran 版本中尚不可用。):https ://github.com/aliceyiwang/mvabund
我已经安装了 Rtools,在这里使用另一个包的说明: https ://cran.r-project.org/web/packages/dynr/vignettes/InstallationForUsers.pdf
并且那里的所有检查都表明 GSL 和 RTools 已正确安装。
但是,当我尝试使用 devtools 安装软件包时,会引发以下错误:
> devtools::install_github("aliceyiwang/mvabund")
Downloading GitHub repo aliceyiwang/mvabund@master
√ checking for file 'C:\Users\Joshua\AppData\Local\Temp\Rtmp69joKy\remotes22b417af510c\aliceyiwang-mvabund-530676b/DESCRIPTION' ...
- preparing 'mvabund': (1.9s)
√ checking DESCRIPTION meta-information ...
- cleaning src
- checking for LF line-endings in source and make files and shell scripts (2.3s)
- checking for empty or unneeded directories
- looking to see if a 'data/datalist' file should be added
- building 'mvabund_4.0.tar.gz'
Warning: file 'mvabund/cleanup' did not have execute permissions: corrected
Installing package into ‘C:/Users/Joshua/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
* installing *source* package 'mvabund' ...
** libs
*** arch - i386
c:/Rtools/mingw_32/bin/g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.1/include" -DNDEBUG -IC:\Program Files\R\local323\/include -I. -I../inst/include -I"C:/Users/Joshua/Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/Joshua/Documents/R/win-library/3.4/RcppGSL/include" -O2 -Wall -mtune=generic -c RcppExports.cpp -o RcppExports.o
g++.exe: error: FilesRlocal323/include: No such file or directory
make: *** [RcppExports.o] Error 1
ERROR: compilation failed for package 'mvabund'
* removing 'C:/Users/Joshua/Documents/R/win-library/3.4/mvabund'
In R CMD INSTALL
Error in i.p(...) :
(converted from warning) installation of package ‘C:/Users/Joshua/AppData/Local/Temp/Rtmp69joKy/file22b479083376/mvabund_4.0.tar.gz’ had non-zero exit status
会话信息发布在下面:
> devtools::session_info()
- Session info ----------------------------------------------------------------------------------------------------------------------------
setting value
version R version 3.5.1 (2018-07-02)
os Windows >= 8 x64
system x86_64, mingw32
ui RStudio
language (EN)
collate English_Australia.1252
ctype English_Australia.1252
tz Australia/Sydney
date 2018-12-12
- Packages --------------------------------------------------------------------------------------------------------------------------------
package * version date lib source
assertthat 0.2.0 2017-04-11 [1] CRAN (R 3.5.1)
backports 1.1.2 2017-12-13 [1] CRAN (R 3.5.0)
callr 3.1.0 2018-12-10 [1] CRAN (R 3.5.1)
cli 1.0.1 2018-09-25 [1] CRAN (R 3.5.1)
crayon 1.3.4 2017-09-16 [1] CRAN (R 3.5.1)
desc 1.2.0 2018-05-01 [1] CRAN (R 3.5.1)
devtools 2.0.1 2018-10-26 [1] CRAN (R 3.5.1)
digest 0.6.18 2018-10-10 [1] CRAN (R 3.5.1)
fs 1.2.6 2018-08-23 [1] CRAN (R 3.5.1)
glue 1.3.0 2018-07-17 [1] CRAN (R 3.5.1)
magrittr 1.5 2014-11-22 [1] CRAN (R 3.5.1)
memoise 1.1.0 2017-04-21 [1] CRAN (R 3.5.1)
pkgbuild 1.0.2 2018-10-16 [1] CRAN (R 3.5.1)
pkgload 1.0.2 2018-10-29 [1] CRAN (R 3.5.1)
prettyunits 1.0.2 2015-07-13 [1] CRAN (R 3.5.1)
processx 3.2.1 2018-12-05 [1] CRAN (R 3.5.1)
ps 1.2.1 2018-11-06 [1] CRAN (R 3.5.1)
R6 2.3.0 2018-10-04 [1] CRAN (R 3.5.1)
Rcpp * 1.0.0 2018-11-07 [1] CRAN (R 3.5.1)
remotes 2.0.2 2018-10-30 [1] CRAN (R 3.5.1)
rlang 0.3.0.1 2018-10-25 [1] CRAN (R 3.5.1)
rprojroot 1.3-2 2018-01-03 [1] CRAN (R 3.5.1)
rstudioapi 0.8 2018-10-02 [1] CRAN (R 3.5.1)
sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 3.5.1)
testthat 2.0.1 2018-10-13 [1] CRAN (R 3.5.1)
usethis 1.4.0 2018-08-14 [1] CRAN (R 3.5.1)
withr 2.1.2 2018-03-15 [1] CRAN (R 3.5.1)
[1] C:/Users/Joshua/Documents/R/win-library/3.5
[2] C:/Program Files/R/R-3.5.1/library
任何帮助安装此软件包将不胜感激。