Description
WORKAROUND:
Until sf (>= 1.0-7) is on CRAN, you can install the develop version, which also has version 1.0-7, using:
remotes::install_github("r-spatial/sf")
Consider this an FYI for now, as I guess you get more reports on this soon:
In contrast to sf 1.0-5 (2021-12-17), I think the new sf 1.0-6 (2022-02-04) requires something newer than GDAL (>= 2.0.1) that the DESCRIPTION file mentions.
Because, when I install with GDAL 2.4.4, on R 4.1.2, I get an error on:
stars.cpp:771:7: error: ‘class OGRSpatialReference’ has no member named ‘SetAxisMappingStrategy’
oSRS.SetAxisMappingStrategy(OAMS_TRADITIONAL_GIS_ORDER);
^~~~~~~~~~~~~~~~~~~~~~
stars.cpp:771:30: error: ‘OAMS_TRADITIONAL_GIS_ORDER’ was not declared in this scope
oSRS.SetAxisMappingStrategy(OAMS_TRADITIONAL_GIS_ORDER);
^~~~~~~~~~~~~~~~~~~~~~~~~~
This is on CentOS 7. I get the same error on Ubuntu 18.04, which has GDAL 2.2.3 (Ubuntu package gdal-bin
2.2.3+dfsg-2). sf 1.0-5 installs fine on both of these systems (see below).
I'll see if I can install the next version up from GDAL 2.4.4, i.e. GDAL 3.0.0, and retry with that.
Details for CentOS run
Setup
$ gdalinfo --version
GDAL 2.4.4, released 2020/01/08
$ geos-config --version
3.4.2
$ proj 2>&1 | head -1
Rel. 4.8.0, 6 March 2012
$ g++ --version | head -1
g++ (GCC) 8.3.1 20190311 (Red Hat 8.3.1-3)
$ R --version | head -1
R version 4.1.2 (2021-11-01) -- "Bird Hippie"
sf 1.0.6 (fails to install)
Click to see install log
> install.packages("sf") Installing package into ‘/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8’ (as ‘lib’ is unspecified) trying URL 'https://cloud.r-project.org/src/contrib/sf_1.0-6.tar.gz' Content type 'application/x-gzip' length 3528078 bytes (3.4 MB) ================================================== downloaded 3.4 MB
- installing source package ‘sf’ ...
** package ‘sf’ successfully unpacked and MD5 sums checked
** using staged installation
configure: CC: gcc
configure: CXX: g++ -std=gnu++11
checking for gdal-config... /wynton/home/cbi/shared/software/CBI/gdal-2.4.4/bin/gdal-config
checking gdal-config usability... yes
configure: GDAL: 2.4.4
checking GDAL version >= 2.0.1... yes
checking for gcc... gcc
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 we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking gdal.h usability... yes
checking gdal.h presence... yes
checking for gdal.h... yes
checking GDAL: linking with --libs only... yes
checking GDAL: /wynton/home/cbi/shared/software/CBI/gdal-2.4.4/share/gdal/pcs.csv readable... yes
checking GDAL: checking whether PROJ is available for linking:... yes
checking GDAL: checking whether PROJ is available fur running:... yes
configure: GDAL: 2.4.4
configure: pkg-config proj exists, will use it
checking proj_api.h usability... yes
checking proj_api.h presence... yes
checking for proj_api.h... yes
configure: PROJ: 4.8.0
checking for pj_init_plus in -lproj... yes
checking PROJ: epsg found and readable... yes
checking for geos-config... /usr/bin/geos-config
checking geos-config usability... yes
configure: GEOS: 3.4.2
checking GEOS version >= 3.4.0... yes
checking geos_c.h usability... yes
checking geos_c.h presence... yes
checking for geos_c.h... yes
checking geos: linking with -L/usr/lib64 -lgeos_c... yes
configure: Package CPP flags: -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include
configure: Package LIBS: -lproj -L/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/lib -lgdal -L/usr/lib64 -lgeos_c
configure: creating ./config.status
config.status: creating src/Makevars
** libs
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c bbox.cpp -o bbox.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c gdal.cpp -o gdal.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c gdal_geom.cpp -o gdal_geom.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c gdal_read.cpp -o gdal_read.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c gdal_utils.cpp -o gdal_utils.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c gdal_write.cpp -o gdal_write.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c geos.cpp -o geos.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c hex.cpp -o hex.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c mdim.cpp -o mdim.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c ops.cpp -o ops.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c polygonize.cpp -o polygonize.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c proj.cpp -o proj.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c proj_info.cpp -o proj_info.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c raster2sf.cpp -o raster2sf.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c sfg.cpp -o sfg.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c signed_area.cpp -o signed_area.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c stars.cpp -o stars.o
stars.cpp: In function ‘void CPL_create(Rcpp::CharacterVector, Rcpp::IntegerVector, Rcpp::NumericVector, Rcpp::CharacterVector, Rcpp::NumericVector, Rcpp::NumericVector)’:
stars.cpp:771:7: error: ‘class OGRSpatialReference’ has no member named ‘SetAxisMappingStrategy’
oSRS.SetAxisMappingStrategy(OAMS_TRADITIONAL_GIS_ORDER);
^~~~~~~~~~~~~~~~~~~~~~
stars.cpp:771:30: error: ‘OAMS_TRADITIONAL_GIS_ORDER’ was not declared in this scope
oSRS.SetAxisMappingStrategy(OAMS_TRADITIONAL_GIS_ORDER);
^~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/etc/Makeconf:177: stars.o] Error 1
ERROR: compilation failed for package ‘sf’ - removing ‘/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/sf’
- restoring previous ‘/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/sf’
The downloaded source packages are in
‘/tmp/Rtmpax2Spi/downloaded_packages’
Warning message:
In install.packages("sf") :
installation of package ‘sf’ had non-zero exit status
sf 1.0.5 (install fine)
Click to see install log
> install.packages("https://cran.r-project.org/src/contrib/Archive/sf/sf_1.0-5.tar.gz") Installing package into ‘/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8’ (as ‘lib’ is unspecified) inferring 'repos = NULL' from 'pkgs' trying URL 'https://cran.r-project.org/src/contrib/Archive/sf/sf_1.0-5.tar.gz' Content type 'application/x-gzip' length 3527059 bytes (3.4 MB) ================================================== downloaded 3.4 MB
- installing source package ‘sf’ ...
** package ‘sf’ successfully unpacked and MD5 sums checked
** using staged installation
configure: CC: gcc
configure: CXX: g++ -std=gnu++11
checking for gdal-config... /wynton/home/cbi/shared/software/CBI/gdal-2.4.4/bin/gdal-config
checking gdal-config usability... yes
configure: GDAL: 2.4.4
checking GDAL version >= 2.0.1... yes
checking for gcc... gcc
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 we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking gdal.h usability... yes
checking gdal.h presence... yes
checking for gdal.h... yes
checking GDAL: linking with --libs only... yes
checking GDAL: /wynton/home/cbi/shared/software/CBI/gdal-2.4.4/share/gdal/pcs.csv readable... yes
checking GDAL: checking whether PROJ is available for linking:... yes
checking GDAL: checking whether PROJ is available fur running:... yes
configure: GDAL: 2.4.4
configure: pkg-config proj exists, will use it
checking proj_api.h usability... yes
checking proj_api.h presence... yes
checking for proj_api.h... yes
configure: PROJ: 4.8.0
checking for pj_init_plus in -lproj... yes
checking PROJ: epsg found and readable... yes
checking for geos-config... /usr/bin/geos-config
checking geos-config usability... yes
configure: GEOS: 3.4.2
checking GEOS version >= 3.4.0... yes
checking geos_c.h usability... yes
checking geos_c.h presence... yes
checking for geos_c.h... yes
checking geos: linking with -L/usr/lib64 -lgeos_c... yes
configure: Package CPP flags: -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include
configure: Package LIBS: -lproj -L/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/lib -lgdal -L/usr/lib64 -lgeos_c
configure: creating ./config.status
config.status: creating src/Makevars
** libs
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c bbox.cpp -o bbox.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c gdal.cpp -o gdal.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c gdal_geom.cpp -o gdal_geom.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c gdal_read.cpp -o gdal_read.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c gdal_utils.cpp -o gdal_utils.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c gdal_write.cpp -o gdal_write.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c geos.cpp -o geos.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c hex.cpp -o hex.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c mdim.cpp -o mdim.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c ops.cpp -o ops.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c polygonize.cpp -o polygonize.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c proj.cpp -o proj.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c proj_info.cpp -o proj_info.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c raster2sf.cpp -o raster2sf.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c sfg.cpp -o sfg.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c signed_area.cpp -o signed_area.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c stars.cpp -o stars.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c wkb.cpp -o wkb.o
g++ -std=gnu++11 -I"/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/include" -DNDEBUG -I/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/include -I/usr/include -I'/wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c zm_range.cpp -o zm_range.o
g++ -std=gnu++11 -shared -L/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/lib -L/usr/local/lib64 -o sf.so RcppExports.o bbox.o gdal.o gdal_geom.o gdal_read.o gdal_utils.o gdal_write.o geos.o hex.o mdim.o ops.o polygonize.o proj.o proj_info.o raster2sf.o sfg.o signed_area.o stars.o wkb.o zm_range.o -lproj -L/wynton/home/cbi/shared/software/CBI/gdal-2.4.4/lib -lgdal -L/usr/lib64 -lgeos_c -L/wynton/home/cbi/shared/software/CBI/R-4.1.2-gcc8/lib64/R/lib -lR
installing to /wynton/home/bengtsson/hb-test/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8/00LOCK-sf/00new/sf/libs
** R
** demo
** inst
** byte-compile and prepare package for lazy loading
in method for ‘dbWriteTable’ with signature ‘"PostgreSQLConnection","character","sf"’: no definition for class “PostgreSQLConnection”
in method for ‘dbDataType’ with signature ‘"PostgreSQLConnection","sf"’: no definition for class “PostgreSQLConnection”
in method for ‘coerce’ with signature ‘"Spatial","sf"’: no definition for class “Spatial”
in method for ‘coerce’ with signature ‘"Spatial","sfc"’: no definition for class “Spatial”
in method for ‘coerce’ with signature ‘"sf","Spatial"’: no definition for class “Spatial”
in method for ‘coerce’ with signature ‘"sfc","Spatial"’: no definition for class “Spatial”
in method for ‘coerce’ with signature ‘"XY","Spatial"’: no definition for class “Spatial”
in method for ‘coerce’ with signature ‘"crs","CRS"’: no definition for class “CRS”
in method for ‘coerce’ with signature ‘"sgbp","sparseMatrix"’: no definition for class “sparseMatrix”
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path - DONE (sf)