* using log directory 'd:/RCompile/CRANincoming/R-devel/ecoPointXAI.Rcheck' * using R Under development (unstable) (2025-11-09 r88992 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'ecoPointXAI/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'ecoPointXAI' version '0.0.1' * package encoding: UTF-8 * checking CRAN incoming feasibility ... NOTE Maintainer: 'Muhammad Qasim ' New submission Possibly misspelled words in DESCRIPTION: LiDAR (3:58, 8:21) PointNet (3:45, 8:36) explainability (9:60) voxelized (8:11) * 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 'ecoPointXAI' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking for future file timestamps ... 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 ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... NOTE compute_ecological_metrics: no visible binding for global variable 'X_grid' compute_ecological_metrics: no visible binding for global variable 'Y_grid' compute_ecological_metrics: no visible binding for global variable 'Z' compute_ecological_metrics: no visible binding for global variable 'value' compute_ecological_metrics: no visible binding for global variable 'mean_height' compute_ecological_metrics: no visible binding for global variable 'canopy_cover' compute_ecological_metrics: no visible binding for global variable 'canopy_complexity' explain_pointnet: no visible binding for global variable 'feature' explain_pointnet: no visible binding for global variable 'phi' explain_pointnet: no visible global function definition for 'desc' explain_pointnet: no visible binding for global variable 'mean_abs_phi' explain_pointnet: no visible binding for global variable 'mean_grad' interpret_ecological_drivers: no visible global function definition for 'desc' interpret_ecological_drivers: no visible binding for global variable 'correlation' interpret_ecological_drivers: no visible binding for global variable 'metric' pointnet_model : : no visible binding for global variable 'self' visualize_explainability: no visible binding for global variable 'row.id' visualize_explainability: no visible binding for global variable 'phi' visualize_explainability: no visible binding for global variable 'importance' visualize_explainability: no visible binding for global variable 'Z' visualize_voxel_importance_3D: no visible binding for global variable 'row.id' visualize_voxel_importance_3D: no visible binding for global variable 'phi' visualize_voxel_importance_3D: no visible binding for global variable 'importance' visualize_voxel_importance_3D: no visible binding for global variable 'X' visualize_voxel_importance_3D: no visible binding for global variable 'Y' visualize_voxel_importance_3D: no visible binding for global variable 'Z' Undefined global functions or variables: X X_grid Y Y_grid Z canopy_complexity canopy_cover correlation desc feature importance mean_abs_phi mean_grad mean_height metric phi row.id self value * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [11s] ERROR Running 'testthat.R' [11s] 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(ecoPointXAI) > > # --- 🧩 CRAN-safety patch --- > # Prevent R CMD check from running heavy or failing examples (like interpret_ecological_drivers) > if (Sys.getenv("_R_CHECK_PACKAGE_NAME_") == "ecoPointXAI") { + message("βš™οΈ Skipping example execution for CRAN check") + try({ + unlockBinding(".exampleEnv", as.environment("package:tools")) + assign("exampleEnv", new.env(), as.environment("package:tools")) + }, silent = TRUE) + } βš™οΈ Skipping example execution for CRAN check > > test_check("ecoPointXAI") Torch libraries are installed but loading them was unsuccessful. Torch libraries are installed but loading them was unsuccessful. ? Saved 2D interactive map ? outputs/ecoPointXAI_map_mean_height.html ? 3D terrain saved ? D:\temp\2025_11_10_04_15_16_27346\RtmpO6kuyM\file483c60f876ec.png No scatterpolar mode specifed: Setting the mode to markers Read more about this attribute -> https://plotly.com/r/reference/#scatter-mode A line object has been specified, but lines is not in the mode Adding lines to the mode... ? Metrics exported to D:\temp\2025_11_10_04_15_16_27346\RtmpO6kuyM\file483c31f81f8f Creation of a LAS object from data but without a header: Scale factors were set to 0.001 and XYZ coordinates were quantized to fit the scale factors. metric correlation mean_height -0.2678571 canopy_cover -0.1071429 mean_height (negatively correlated, ? = 0.27). This suggests that spatial prediction variability is primarily influenced by canopy structure and elevation gradients. Creation of a LAS object from data but without a header: Scale factors were set to 0.001 and XYZ coordinates were quantized to fit the scale factors. ? Normalizing ground ... ? Computing voxel metrics ... ? Forest rendered safely - no zero-length errors. ? Using SHAP-based importance ⚠️ Caught and ignored harmless integer-coercion error in test. [ FAIL 3 | WARN 0 | SKIP 2 | PASS 16 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ β€’ On CRAN (1): 'test-io_read_write.R:3:3' β€’ cone3d_safe not available in this build (1): 'test-train_pointnet.R:11:5' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-data_loader.R:5:3'): create_dataloader builds iterable batches ── Error in `(function (size, options) { .Call(`_torch_cpp_torch_namespace_randn_size_IntArrayRef`, size, options) })(size = c(20, 3), options = list(dtype = NULL, layout = NULL, device = NULL, requires_grad = FALSE))`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies. Backtrace: β–† 1. └─torch::torch_randn(c(20, 3)) at test-data_loader.R:5:3 2. β”œβ”€base::do.call(.torch_randn, args) 3. └─torch (local) ``(options = ``, size = ``) 4. └─torch:::call_c_function(...) 5. └─torch:::do_call(f, args) 6. β”œβ”€base::do.call(fun, args) 7. └─torch (local) ``(size = ``, options = ``) ── Error ('test-data_split.R:4:3'): split_train_test divides torch tensors correctly ── Error in `(function (size, options) { .Call(`_torch_cpp_torch_namespace_randn_size_IntArrayRef`, size, options) })(size = c(20, 3), options = list(dtype = NULL, layout = NULL, device = NULL, requires_grad = FALSE))`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies. Backtrace: β–† 1. └─torch::torch_randn(c(20, 3)) at test-data_split.R:4:3 2. β”œβ”€base::do.call(.torch_randn, args) 3. └─torch (local) ``(options = ``, size = ``) 4. └─torch:::call_c_function(...) 5. └─torch:::do_call(f, args) 6. β”œβ”€base::do.call(fun, args) 7. └─torch (local) ``(size = ``, options = ``) ── Error ('test-data_tensor.R:11:3'): convert_to_tensor normalizes and converts correctly ── Error in `cpp_torch_float32()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies. Backtrace: β–† 1. └─ecoPointXAI::convert_to_tensor(df) at test-data_tensor.R:11:3 2. β”œβ”€torch::torch_tensor(as.matrix(df), dtype = torch::torch_float()) 3. β”‚ └─Tensor$new(data, dtype, device, requires_grad, pin_memory) 4. β”‚ └─methods$initialize(NULL, NULL, ...) 5. β”‚ └─torch:::torch_tensor_cpp(...) 6. └─torch::torch_float() 7. β”œβ”€torch_dtype$new(cpp_torch_float32()) 8. β”‚ └─methods$initialize(NULL, NULL, ...) 9. └─torch:::cpp_torch_float32() [ FAIL 3 | WARN 0 | SKIP 2 | PASS 16 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... OK * checking PDF version of manual ... [14s] OK * checking HTML version of manual ... OK * DONE Status: 1 ERROR, 2 NOTEs