Running 'testthat.R' [21s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(clc)
  > 
  > test_check("clc")
  Saving _problems/test-clc-97.R
  Writing layer `clc' to data source 
    `D:\temp\2025_12_29_16_12_34_1110\RtmpMbpELh\fileada0335b659b.gpkg' using driver `GPKG'
  Writing 136 features with 2 fields and geometry type Multi Polygon.
  Writing layer `clc' to data source 
    `D:\temp\2025_12_29_16_12_34_1110\RtmpMbpELh\fileada047b415d7.gpkg' using driver `GPKG'
  Writing 136 features with 2 fields and geometry type Multi Polygon.
  Saving _problems/test-clc_raster-7.R
  Saving _problems/test-clc_raster-89.R
  [ FAIL 3 | WARN 6 | SKIP 0 | PASS 162 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-clc.R:97:3'): as_raster converts clc object to raster format ───
  <Rcpp::exception/C++Error/error/condition>
  Error: OGRCreateCoordinateTransformation(): transformation not available
  Backtrace:
       ▆
    1. ├─clc::as_raster(clo, base_raster = base_raster) at test-clc.R:97:3
    2. └─clc:::as_raster.clc(clo, base_raster = base_raster)
    3.   └─clc:::clc_raster(...)
    4.     └─clc:::vector_to_raster_layers(...)
    5.       └─clc::safe_clip_multipoligon(vector_layer, bbox_raster)
    6.         └─base::tryCatch(...)
    7.           └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    8.             └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
    9.               └─value[[3L]](cond)
   10.                 └─clc:::clip_vector(v, polygon)
   11.                   ├─sf::st_transform(polygon, sf::st_crs(vector))
   12.                   └─sf:::st_transform.sf(polygon, sf::st_crs(vector))
   13.                     ├─sf::st_transform(st_geometry(x), crs, ...)
   14.                     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   15.                       ├─sf::st_sfc(...)
   16.                       ├─base::structure(...)
   17.                       └─sf:::CPL_transform(...)
  ── Error ('test-clc_raster.R:7:3'): vector_to_raster_layers works correctly with base raster ──
  <Rcpp::exception/C++Error/error/condition>
  Error: OGRCreateCoordinateTransformation(): transformation not available
  Backtrace:
       ▆
    1. └─clc:::vector_to_raster_layers(...) at test-clc_raster.R:7:3
    2.   └─clc::safe_clip_multipoligon(vector_layer, bbox_raster)
    3.     └─base::tryCatch(...)
    4.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    5.         └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
    6.           └─value[[3L]](cond)
    7.             └─clc:::clip_vector(v, polygon)
    8.               ├─sf::st_transform(polygon, sf::st_crs(vector))
    9.               └─sf:::st_transform.sf(polygon, sf::st_crs(vector))
   10.                 ├─sf::st_transform(st_geometry(x), crs, ...)
   11.                 └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   12.                   ├─sf::st_sfc(...)
   13.                   ├─base::structure(...)
   14.                   └─sf:::CPL_transform(...)
  ── Error ('test-clc_raster.R:88:3'): clc_raster creates an object correctly ────
  <Rcpp::exception/C++Error/error/condition>
  Error: OGRCreateCoordinateTransformation(): transformation not available
  Backtrace:
       ▆
    1. ├─clc::as_raster(clo, base_raster = base_raster) at test-clc_raster.R:88:3
    2. └─clc:::as_raster.clc(clo, base_raster = base_raster)
    3.   └─clc:::clc_raster(...)
    4.     └─clc:::vector_to_raster_layers(...)
    5.       └─clc::safe_clip_multipoligon(vector_layer, bbox_raster)
    6.         └─base::tryCatch(...)
    7.           └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    8.             └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
    9.               └─value[[3L]](cond)
   10.                 └─clc:::clip_vector(v, polygon)
   11.                   ├─sf::st_transform(polygon, sf::st_crs(vector))
   12.                   └─sf:::st_transform.sf(polygon, sf::st_crs(vector))
   13.                     ├─sf::st_transform(st_geometry(x), crs, ...)
   14.                     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   15.                       ├─sf::st_sfc(...)
   16.                       ├─base::structure(...)
   17.                       └─sf:::CPL_transform(...)
  
  [ FAIL 3 | WARN 6 | SKIP 0 | PASS 162 ]
  Error:
  ! Test failures.
  Execution halted