安装包“sf”在安装包“stars”失败后消失,并且无法重新安装所有依赖项

问题描述 投票:0回答:1

我正在 MacOS 10.13.6 上使用 RStudio 1.3.1093 运行 R 版本 3.6.3。

我安装并使用了“sf”包一段时间了,一切都运行良好。 但是当我尝试安装“stars”包并且失败后(不幸的是我没有保存错误消息),出现了以下警告:

当我调用包裹时,出现错误:

> library(sf)
Error in library(sf) : there is no package called ‘sf’

所以我尝试通过

install.packages("sf")
再次安装该软件包并从https://cran.r-project.org/web/packages/sf/index.html加载“sf_1.0-15.tar.gz” ,两次尝试都失败了:

> install.packages("sf")
also installing the dependencies ‘wk’, ‘s2’, ‘units’

Warning in install.packages :
  unable to access index for repository https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6:
  cannot open URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6/PACKAGES'
Packages which are only available in source form, and may need compilation of C/C++/Fortran: ‘wk’ ‘s2’ ‘units’ ‘sf’
Do you want to attempt to install these from sources? (Yes/no/cancel) Yes
installing the source packages ‘wk’, ‘s2’, ‘units’, ‘sf’

trying URL 'https://cran.rstudio.com/src/contrib/wk_0.9.1.tar.gz'
Content type 'application/x-gzip' length 1039442 bytes (1015 KB)
==================================================
downloaded 1015 KB

trying URL 'https://cran.rstudio.com/src/contrib/s2_1.1.6.tar.gz'
Content type 'application/x-gzip' length 2376936 bytes (2.3 MB)
==================================================
downloaded 2.3 MB

trying URL 'https://cran.rstudio.com/src/contrib/units_0.8-5.tar.gz'
Content type 'application/x-gzip' length 247974 bytes (242 KB)
==================================================
downloaded 242 KB

trying URL 'https://cran.rstudio.com/src/contrib/sf_1.0-15.tar.gz'
Content type 'application/x-gzip' length 3485450 bytes (3.3 MB)
==================================================
downloaded 3.3 MB

* installing *source* package ‘wk’ ...
** package ‘wk’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c bbox-handler.c -o bbox-handler.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c count-handler.c -o count-handler.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c debug-filter.c -o debug-filter.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c flatten-filter.c -o flatten-filter.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c handle-crc.c -o handle-crc.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c handle-rct.c -o handle-rct.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c handle-sfc.c -o handle-sfc.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c handle-wkb.c -o handle-wkb.o
clang++ -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c handle-wkt.cpp -o handle-wkt.o
In file included from handle-wkt.cpp:11:
In file included from ./internal/buffered-reader.hpp:5:
./internal/fast_float/fast_float.h:80:3: error: unknown type name 'constexpr'
  constexpr explicit parse_options(chars_format fmt = chars_format::general,
  ^
./internal/fast_float/fast_float.h:80:13: error: expected member name or ';' after declaration specifiers
  constexpr explicit parse_options(chars_format fmt = chars_format::general,
  ~~~~~~~~~ ^
./internal/fast_float/fast_float.h:111:59: warning: use of enumeration in a nested name specifier is a C++11 extension [-Wc++11-extensions]
                             T &value, chars_format fmt = chars_format::general)  noexcept;
                                                          ^
./internal/fast_float/fast_float.h:111:81: error: expected ';' at end of declaration
                             T &value, chars_format fmt = chars_format::general)  noexcept;
                                                                                ^
                                                                                ;
./internal/fast_float/fast_float.h:111:83: error: C++ requires a type specifier for all declarations
                             T &value, chars_format fmt = chars_format::general)  noexcept;
                                                                                  ^
./internal/fast_float/fast_float.h:118:71: error: expected ';' at end of declaration
                                      T &value, parse_options options)  noexcept;
                                                                      ^
                                                                      ;
./internal/fast_float/fast_float.h:118:73: error: C++ requires a type specifier for all declarations
                                      T &value, parse_options options)  noexcept;
                                                                        ^
./internal/fast_float/fast_float.h:217:20: error: expected ';' at end of declaration
  char running_diff{0};
                   ^
                   ;
./internal/fast_float/fast_float.h:236:3: error: unknown type name 'constexpr'
  constexpr size_t len() const noexcept {
  ^
./internal/fast_float/fast_float.h:236:19: error: expected ';' at end of declaration list
  constexpr size_t len() const noexcept {
                  ^
                  ;
./internal/fast_float/fast_float.h:324:12: error: function definition does not declare parameters
  uint64_t mantissa{0};
           ^
./internal/fast_float/fast_float.h:325:11: error: function definition does not declare parameters
  int32_t power2{0}; // a negative value indicates an invalid result
          ^
./internal/fast_float/fast_float.h:326:25: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions]
  adjusted_mantissa() = default;
                        ^
./internal/fast_float/fast_float.h:328:26: error: no member named 'mantissa' in 'fast_float::adjusted_mantissa'
    return mantissa == o.mantissa && power2 == o.power2;
                       ~ ^
./internal/fast_float/fast_float.h:328:12: error: use of undeclared identifier 'mantissa'
    return mantissa == o.mantissa && power2 == o.power2;
           ^
./internal/fast_float/fast_float.h:328:50: error: no member named 'power2' in 'fast_float::adjusted_mantissa'
    return mantissa == o.mantissa && power2 == o.power2;
                                               ~ ^
./internal/fast_float/fast_float.h:328:38: error: use of undeclared identifier 'power2'
    return mantissa == o.mantissa && power2 == o.power2;
                                     ^
./internal/fast_float/fast_float.h:331:26: error: no member named 'mantissa' in 'fast_float::adjusted_mantissa'
    return mantissa != o.mantissa || power2 != o.power2;
                       ~ ^
./internal/fast_float/fast_float.h:331:12: error: use of undeclared identifier 'mantissa'
    return mantissa != o.mantissa || power2 != o.power2;
           ^
./internal/fast_float/fast_float.h:331:50: error: no member named 'power2' in 'fast_float::adjusted_mantissa'
    return mantissa != o.mantissa || power2 != o.power2;
                                               ~ ^
./internal/fast_float/fast_float.h:331:38: error: use of undeclared identifier 'power2'
    return mantissa != o.mantissa || power2 != o.power2;
                                     ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
make: *** [handle-wkt.o] Error 1
ERROR: compilation failed for package ‘wk’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/wk’
Warning in install.packages :
  installation of package ‘wk’ had non-zero exit status
* installing *source* package ‘units’ ...
** package ‘units’ successfully unpacked and MD5 sums checked
** using staged installation
configure: units: 0.8-5
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C++... yes
checking whether clang++ accepts -g... yes
checking for clang++ option to enable C++11 features... none needed
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for _Bool... no
checking for stdbool.h that conforms to C99... no
checking for error_at_line... no
checking for gcc... clang
checking whether the compiler supports GNU C... yes
checking whether clang accepts -g... yes
checking for clang option to enable C11 features... none needed
checking for XML_ParserCreate in -lexpat... yes
checking for udunits2.h... no
checking for udunits2/udunits2.h... no
checking for ut_read_xml in -ludunits2... no
configure: error: in `/private/var/folders/xq/3h4582853bx56xs6nkzh65c40000gn/T/RtmpJXBgPv/R.INSTALL5f814c9f34b2/units':
configure: error: 
--------------------------------------------------------------------------------
  Configuration failed because libudunits2.so was not found. Try installing:
    * deb: libudunits2-dev (Debian, Ubuntu, ...)
    * rpm: udunits2-devel (Fedora, EPEL, ...)
    * brew: udunits (OSX)
  If udunits2 is already installed in a non-standard location, use:
    --configure-args='--with-udunits2-lib=/usr/local/lib'
  if the library was not found, and/or:
    --configure-args='--with-udunits2-include=/usr/include/udunits2'
  if the header was not found, replacing paths with appropriate values.
  You can alternatively set UDUNITS2_INCLUDE and UDUNITS2_LIBS manually.
--------------------------------------------------------------------------------

See `config.log' for more details
ERROR: configuration failed for package ‘units’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/units’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/units’
Warning in install.packages :
  installation of package ‘units’ had non-zero exit status
ERROR: dependency ‘wk’ is not available for package ‘s2’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/s2’
Warning in install.packages :
  installation of package ‘s2’ had non-zero exit status
ERROR: dependency ‘s2’ is not available for package ‘sf’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/sf’
Warning in install.packages :
  installation of package ‘sf’ had non-zero exit status

The downloaded source packages are in
    ‘/private/var/folders/xq/3h4582853bx56xs6nkzh65c40000gn/T/RtmpDdn7rS/downloaded_packages’

我仍然可以用

library(units)

来称呼“单位”

但是当我尝试安装其他两个依赖项(“wk”、“s2”)时,它们都失败了。这是我在安装包“wk”时遇到的错误:

> install.packages("wk")
Warning in install.packages :
  unable to access index for repository https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6:
  cannot open URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6/PACKAGES'
Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘wk’
Do you want to attempt to install these from sources? (Yes/no/cancel) Yes
installing the source package ‘wk’

trying URL 'https://cran.rstudio.com/src/contrib/wk_0.9.1.tar.gz'
Content type 'application/x-gzip' length 1039442 bytes (1015 KB)
==================================================
downloaded 1015 KB

* installing *source* package ‘wk’ ...
** package ‘wk’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c bbox-handler.c -o bbox-handler.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c count-handler.c -o count-handler.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c debug-filter.c -o debug-filter.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c flatten-filter.c -o flatten-filter.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c handle-crc.c -o handle-crc.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c handle-rct.c -o handle-rct.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c handle-sfc.c -o handle-sfc.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c handle-wkb.c -o handle-wkb.o
clang++ -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c handle-wkt.cpp -o handle-wkt.o
In file included from handle-wkt.cpp:11:
In file included from ./internal/buffered-reader.hpp:5:
./internal/fast_float/fast_float.h:80:3: error: unknown type name 'constexpr'
  constexpr explicit parse_options(chars_format fmt = chars_format::general,
  ^
./internal/fast_float/fast_float.h:80:13: error: expected member name or ';' after declaration specifiers
  constexpr explicit parse_options(chars_format fmt = chars_format::general,
  ~~~~~~~~~ ^
./internal/fast_float/fast_float.h:111:59: warning: use of enumeration in a nested name specifier is a C++11 extension [-Wc++11-extensions]
                             T &value, chars_format fmt = chars_format::general)  noexcept;
                                                          ^
./internal/fast_float/fast_float.h:111:81: error: expected ';' at end of declaration
                             T &value, chars_format fmt = chars_format::general)  noexcept;
                                                                                ^
                                                                                ;
./internal/fast_float/fast_float.h:111:83: error: C++ requires a type specifier for all declarations
                             T &value, chars_format fmt = chars_format::general)  noexcept;
                                                                                  ^
./internal/fast_float/fast_float.h:118:71: error: expected ';' at end of declaration
                                      T &value, parse_options options)  noexcept;
                                                                      ^
                                                                      ;
./internal/fast_float/fast_float.h:118:73: error: C++ requires a type specifier for all declarations
                                      T &value, parse_options options)  noexcept;
                                                                        ^
./internal/fast_float/fast_float.h:217:20: error: expected ';' at end of declaration
  char running_diff{0};
                   ^
                   ;
./internal/fast_float/fast_float.h:236:3: error: unknown type name 'constexpr'
  constexpr size_t len() const noexcept {
  ^
./internal/fast_float/fast_float.h:236:19: error: expected ';' at end of declaration list
  constexpr size_t len() const noexcept {
                  ^
                  ;
./internal/fast_float/fast_float.h:324:12: error: function definition does not declare parameters
  uint64_t mantissa{0};
           ^
./internal/fast_float/fast_float.h:325:11: error: function definition does not declare parameters
  int32_t power2{0}; // a negative value indicates an invalid result
          ^
./internal/fast_float/fast_float.h:326:25: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions]
  adjusted_mantissa() = default;
                        ^
./internal/fast_float/fast_float.h:328:26: error: no member named 'mantissa' in 'fast_float::adjusted_mantissa'
    return mantissa == o.mantissa && power2 == o.power2;
                       ~ ^
./internal/fast_float/fast_float.h:328:12: error: use of undeclared identifier 'mantissa'
    return mantissa == o.mantissa && power2 == o.power2;
           ^
./internal/fast_float/fast_float.h:328:50: error: no member named 'power2' in 'fast_float::adjusted_mantissa'
    return mantissa == o.mantissa && power2 == o.power2;
                                               ~ ^
./internal/fast_float/fast_float.h:328:38: error: use of undeclared identifier 'power2'
    return mantissa == o.mantissa && power2 == o.power2;
                                     ^
./internal/fast_float/fast_float.h:331:26: error: no member named 'mantissa' in 'fast_float::adjusted_mantissa'
    return mantissa != o.mantissa || power2 != o.power2;
                       ~ ^
./internal/fast_float/fast_float.h:331:12: error: use of undeclared identifier 'mantissa'
    return mantissa != o.mantissa || power2 != o.power2;
           ^
./internal/fast_float/fast_float.h:331:50: error: no member named 'power2' in 'fast_float::adjusted_mantissa'
    return mantissa != o.mantissa || power2 != o.power2;
                                               ~ ^
./internal/fast_float/fast_float.h:331:38: error: use of undeclared identifier 'power2'
    return mantissa != o.mantissa || power2 != o.power2;
                                     ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
make: *** [handle-wkt.o] Error 1
ERROR: compilation failed for package ‘wk’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/wk’
Warning in install.packages :
  installation of package ‘wk’ had non-zero exit status

The downloaded source packages are in
    ‘/private/var/folders/xq/3h4582853bx56xs6nkzh65c40000gn/T/RtmpDdn7rS/downloaded_packages’

我还尝试通过下载和加载 tar.gz 文件(s2_1.1.6.tar.gz 和 wk_0.9.1.tar.gz)来安装依赖项,但也失败了:

> install.packages("~/Documents/R/Package tgz/wk_0.9.1.tar.gz", repos = NULL, type = "source")
* installing *source* package ‘wk’ ...
** package ‘wk’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c bbox-handler.c -o bbox-handler.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c count-handler.c -o count-handler.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c debug-filter.c -o debug-filter.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c flatten-filter.c -o flatten-filter.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c handle-crc.c -o handle-crc.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c handle-rct.c -o handle-rct.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c handle-sfc.c -o handle-sfc.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c handle-wkb.c -o handle-wkb.o
clang++ -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c handle-wkt.cpp -o handle-wkt.o
In file included from handle-wkt.cpp:11:
In file included from ./internal/buffered-reader.hpp:5:
./internal/fast_float/fast_float.h:80:3: error: unknown type name 'constexpr'
  constexpr explicit parse_options(chars_format fmt = chars_format::general,
  ^
./internal/fast_float/fast_float.h:80:13: error: expected member name or ';' after declaration specifiers
  constexpr explicit parse_options(chars_format fmt = chars_format::general,
  ~~~~~~~~~ ^
./internal/fast_float/fast_float.h:111:59: warning: use of enumeration in a nested name specifier is a C++11 extension [-Wc++11-extensions]
                             T &value, chars_format fmt = chars_format::general)  noexcept;
                                                          ^
./internal/fast_float/fast_float.h:111:81: error: expected ';' at end of declaration
                             T &value, chars_format fmt = chars_format::general)  noexcept;
                                                                                ^
                                                                                ;
./internal/fast_float/fast_float.h:111:83: error: C++ requires a type specifier for all declarations
                             T &value, chars_format fmt = chars_format::general)  noexcept;
                                                                                  ^
./internal/fast_float/fast_float.h:118:71: error: expected ';' at end of declaration
                                      T &value, parse_options options)  noexcept;
                                                                      ^
                                                                      ;
./internal/fast_float/fast_float.h:118:73: error: C++ requires a type specifier for all declarations
                                      T &value, parse_options options)  noexcept;
                                                                        ^
./internal/fast_float/fast_float.h:217:20: error: expected ';' at end of declaration
  char running_diff{0};
                   ^
                   ;
./internal/fast_float/fast_float.h:236:3: error: unknown type name 'constexpr'
  constexpr size_t len() const noexcept {
  ^
./internal/fast_float/fast_float.h:236:19: error: expected ';' at end of declaration list
  constexpr size_t len() const noexcept {
                  ^
                  ;
./internal/fast_float/fast_float.h:324:12: error: function definition does not declare parameters
  uint64_t mantissa{0};
           ^
./internal/fast_float/fast_float.h:325:11: error: function definition does not declare parameters
  int32_t power2{0}; // a negative value indicates an invalid result
          ^
./internal/fast_float/fast_float.h:326:25: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions]
  adjusted_mantissa() = default;
                        ^
./internal/fast_float/fast_float.h:328:26: error: no member named 'mantissa' in 'fast_float::adjusted_mantissa'
    return mantissa == o.mantissa && power2 == o.power2;
                       ~ ^
./internal/fast_float/fast_float.h:328:12: error: use of undeclared identifier 'mantissa'
    return mantissa == o.mantissa && power2 == o.power2;
           ^
./internal/fast_float/fast_float.h:328:50: error: no member named 'power2' in 'fast_float::adjusted_mantissa'
    return mantissa == o.mantissa && power2 == o.power2;
                                               ~ ^
./internal/fast_float/fast_float.h:328:38: error: use of undeclared identifier 'power2'
    return mantissa == o.mantissa && power2 == o.power2;
                                     ^
./internal/fast_float/fast_float.h:331:26: error: no member named 'mantissa' in 'fast_float::adjusted_mantissa'
    return mantissa != o.mantissa || power2 != o.power2;
                       ~ ^
./internal/fast_float/fast_float.h:331:12: error: use of undeclared identifier 'mantissa'
    return mantissa != o.mantissa || power2 != o.power2;
           ^
./internal/fast_float/fast_float.h:331:50: error: no member named 'power2' in 'fast_float::adjusted_mantissa'
    return mantissa != o.mantissa || power2 != o.power2;
                                               ~ ^
./internal/fast_float/fast_float.h:331:38: error: use of undeclared identifier 'power2'
    return mantissa != o.mantissa || power2 != o.power2;
                                     ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
make: *** [handle-wkt.o] Error 1
ERROR: compilation failed for package ‘wk’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/wk’
Warning in install.packages :
  installation of package ‘/Users/Suen/Documents/R/Package tgz/wk_0.9.1.tar.gz’ had non-zero exit status

除了“stars”包安装失败之外,我无法弄清楚是什么导致了这个问题(我可能完全错了)。如果有人能给我一些建议,我将不胜感激。谢谢。

r-sf r-package install.packages
1个回答
0
投票

我的建议是更新到 R 的发布版本(现在是 4.3.3),以便您可以安装

sf
及其依赖项的二进制包。

© www.soinside.com 2019 - 2024. All rights reserved.