* using log directory 'd:/Rcompile/CRANpkg/local/4.4/clc.Rcheck' * using R version 4.4.3 (2025-02-28 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'clc/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'clc' version '1.0.0' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'clc' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [0s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [0s] OK * checking whether startup messages can be suppressed ... [0s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [3s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of 'data' directory ... OK * checking data for non-ASCII characters ... [0s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [9s] ERROR Running examples in 'clc-Ex.R' failed The error most likely occurred in: > ### Name: as_raster > ### Title: Convert a 'clc' Object to Raster Format > ### Aliases: as_raster as_raster.clc > > ### ** Examples > > source_gpkg <- system.file("extdata", "clc.gpkg", package = "clc") > clo <- clc(source = source_gpkg, layer_name = "clc") > > raster_path <- system.file("extdata", "mdt.tif", package = "clc") > base_raster <- terra::rast(raster_path) > > # ex1 > r <- clo |> + as_raster(base_raster = base_raster) Warning in CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, : GDAL Error 6: Cannot find coordinate operations from `{ "$schema": "https://proj.org/schemas/v0.7/projjson.schema.json", "type": "EngineeringCRS", "name": "ETRS89 / UTM zone 30N (N-E)", "datum": { "name": "Unknown engineering datum" }, "coordinate_system": { "subtype": "Cartesian", "axis": [ { "name": "Easting", "abbreviation": "E", "direction": "east", "unit": "metre" }, { "name": "Northing", "abbreviation": "N", "direction": "north", "unit": "metre" } ] } }' to `EPSG:25830' Warning in CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, : GDAL Error 6: Cannot find coordinate operations from `{ "$schema": "https://proj.org/schemas/v0.7/projjson.schema.json", "type": "EngineeringCRS", "name": "ETRS89 / UTM zone 30N (N-E)", "datum": { "name": "Unknown engineering datum" }, "coordinate_system": { "subtype": "Cartesian", "axis": [ { "name": "Easting", "abbreviation": "E", "direction": "east", "unit": "metre" }, { "name": "Northing", "abbreviation": "N", "direction": "north", "unit": "metre" } ] } }' to `EPSG:25830' Error: OGRCreateCoordinateTransformation(): transformation not available Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [22s] ERROR Running 'testthat.R' [22s] 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_05_01_50_00_7414\RtmpKWs7ms\file453446f65853.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_05_01_50_00_7414\RtmpKWs7ms\file4534185361c7.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 ─── 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 ── 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 ──── 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 * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [23s] ERROR Error(s) in re-building vignettes: --- re-building 'clc.Rmd' using rmarkdown Quitting from clc.Rmd:280-286 [example-3] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: ! OGRCreateCoordinateTransformation(): transformation not available --- Backtrace: ▆ 1. ├─clc::as_raster(clc_clipped, base_raster = base_raster) 2. └─clc:::as_raster.clc(clc_clipped, 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: processing vignette 'clc.Rmd' failed with diagnostics: OGRCreateCoordinateTransformation(): transformation not available --- failed re-building 'clc.Rmd' SUMMARY: processing the following file failed: 'clc.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [23s] OK * checking HTML version of manual ... [2s] OK * DONE Status: 3 ERRORs