0

我一直在尝试下载 R 包 gribr 以使用 R 中的 grib 数据文件,但我在下载时遇到了一些问题。任何有关如何实现这一目标的帮助或指导都将受到高度赞赏。

remotes::install_github("nawendt/gribr")
> Downloading GitHub repo nawendt/gribr@HEAD
√  checking for file 'C:\Users\AppData\Local\Temp\RtmpsDzyVa\remotes81ac6bc768ec\nawendt-gribr-c1ea732/DESCRIPTION' (2.2s)
-  preparing 'gribr':
√  checking DESCRIPTION meta-information ... 
-  cleaning src
-  running 'cleanup.win'
-  checking for LF line-endings in source and make files and shell scripts (336ms)
-  checking for empty or unneeded directories
-  building 'gribr_1.2.3.tar.gz'
   Warning: file 'gribr/cleanup' did not have execute permissions: corrected
   Warning: file 'gribr/configure' did not have execute permissions: corrected
   
* installing *source* package 'gribr' ...
** using staged installation
** libs
Warning: this package has a non-empty 'configure.win' file,
so building only the main architecture

"C:/rtools40/mingw64/bin/"gcc  -I"C:/Users/DOCUME~1/R/R-40~1.3/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c grib_api_version.c -o grib_api_version.o
In file included from grib_api_version.c:4:
gribr.h:1:10: fatal error: eccodes.h: No such file or directory
 #include <eccodes.h>
          ^~~~~~~~~~~
compilation terminated.
make: *** [C:/Users/DOCUME~1/R/R-40~1.3/etc/x64/Makeconf:222: grib_api_version.o] Error 1
ERROR: compilation failed for package 'gribr'
* removing 'C:/Users/Documents/R/R-4.0.3/library/gribr
4

0 回答 0