Hi all! I'm new to the R and met some difficlties with installing one package from the github. I was looking for the answer, but nothing helped me.
I try to install package through devtools::install_github("statsbomb/StatsBombR"). and it looks like it works, but in the end it shows error and remove everything. I use Windows and last version of RStudio.
Here is the full code:
> devtools::install_github("statsbomb/StatsBombR", INSTALL_opts="--no-multiarch")
Downloading GitHub repo statsbomb/StatsBombR@master
Downloading git repo https://github.com/cran/SDMTools.git
√ checking for file 'C:\Users\Golovach Andrew\AppData\Local\Temp\RtmpkFdb0E\file37503a1121e9/DESCRIPTION' (603ms)
- preparing 'SDMTools': (690ms)
√ checking DESCRIPTION meta-information ...
- cleaning src
- checking for LF line-endings in source and make files and shell scripts (598ms)
- checking for empty or unneeded directories
- building 'SDMTools_1.1-221.2.tar.gz'
Installing package into ‘C:/Users/Golovach Andrew/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
* installing *source* package 'SDMTools' ...
** using staged installation
** libs
C:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-36~1.2/include" -DNDEBUG -O2 -Wall -std=gnu99 -mtune=generic -c ConnectedComponentLabelling.c -o ConnectedComponentLabelling.o
C:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-36~1.2/include" -DNDEBUG -O2 -Wall -std=gnu99 -mtune=generic -c getmin.c -o getmin.o
C:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-36~1.2/include" -DNDEBUG -O2 -Wall -std=gnu99 -mtune=generic -c movewindow.c -o movewindow.o
C:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-36~1.2/include" -DNDEBUG -O2 -Wall -std=gnu99 -mtune=generic -c patchstats.c -o patchstats.o
C:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-36~1.2/include" -DNDEBUG -O2 -Wall -std=gnu99 -mtune=generic -c pointinpolygon.c -o pointinpolygon.o
C:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-36~1.2/include" -DNDEBUG -O2 -Wall -std=gnu99 -mtune=generic -c slope.aspect.c -o slope.aspect.o
C:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-36~1.2/include" -DNDEBUG -O2 -Wall -std=gnu99 -mtune=generic -c vincenty.geodesics.c -o vincenty.geodesics.o
C:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-36~1.2/include" -DNDEBUG -O2 -Wall -std=gnu99 -mtune=generic -c writeasciidata.c -o writeasciidata.o
C:/Rtools/mingw_64/bin/gcc -shared -s -static-libgcc -o SDMTools.dll tmp.def ConnectedComponentLabelling.o getmin.o movewindow.o patchstats.o pointinpolygon.o slope.aspect.o vincenty.geodesics.o writeasciidata.o -LC:/PROGRA~1/R/R-36~1.2/bin/x64 -lR
installing to C:/Users/Golovach Andrew/Documents/R/win-library/3.6/00LOCK-SDMTools/00new/SDMTools/libs/x64
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
converting help for package 'SDMTools'
finding HTML links ... готово
COGravity html
ClassStat html
ConnCompLabel html
Istat html
Kappa html
PatchStat html
Scalebar html
SigDiff html
ZonalStat html
accuracy html
asc.from.raster html
asc2dataframe html
auc html
circular.averaging html
compare.matrix html
confusion.matrix html
destination html
distance html
extract.data html
getXYcoords html
grid.area html
grid.info html
lcmw html
legend.gradient html
omission html
optim.thresh html
pnt.in.poly html
put.data html
quick.map html
read.asc html
slope html
wt.mean html
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (SDMTools)
Downloading git repo https://github.com/cran/SDMTools.git
Skipping SDMTools, it is already being installed
√ checking for file 'C:\Users\Golovach Andrew\AppData\Local\Temp\RtmpkFdb0E\remotes37502c1c4c88\statsbomb-StatsBombR-fc283e4/DESCRIPTION' (718ms)
- preparing 'StatsBombR': (554ms)
√ checking DESCRIPTION meta-information ...
- checking for LF line-endings in source and make files and shell scripts (468ms)
- checking for empty or unneeded directories
- building 'StatsBombR_0.1.0.tar.gz'
Installing package into ‘C:/Users/Golovach Andrew/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
* installing *source* package 'StatsBombR' ...
** using staged installation
** R
** byte-compile and prepare package for lazy loading
Ошибка: (конвертировано из предупреждения) пакет 'dplyr' был собран под R версии 3.6.3
Выполнение остановлено
ERROR: lazy loading failed for package 'StatsBombR'
* removing 'C:/Users/Golovach Andrew/Documents/R/win-library/3.6/StatsBombR'
Ошибка: Failed to install 'StatsBombR' from GitHub:
(конвертировано из предупреждения) installation of package ‘C:/Users/GOLOVA~1/AppData/Local/Temp/RtmpkFdb0E/file375023623d19/StatsBombR_0.1.0.tar.gz’ had non-zero exit status
Any help will be appreciated!