* using log directory 'd:/Rcompile/CRANpkg/local/4.6/CspStandSegmentation.Rcheck' * using R version 4.6.0 beta (2026-04-16 r89899 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 * current time: 2026-04-17 08:09:48 UTC * checking for file 'CspStandSegmentation/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'CspStandSegmentation' version '0.2.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 'CspStandSegmentation' can be installed ... ERROR Installation failed. See 'd:/Rcompile/CRANpkg/local/4.6/CspStandSegmentation.Rcheck/00install.out' for details. * DONE The installation logfile: * installing *source* package 'CspStandSegmentation' ... ** this is package 'CspStandSegmentation' version '0.2.0' ** package 'CspStandSegmentation' successfully unpacked and MD5 sums checked ** using staged installation ** libs specified C++17 using C++ compiler: 'g++.exe (GCC) 14.3.0' using C++17 make[1]: Entering directory '/d/temp/2026_04_17_01_50_00_1722/Rtmpq2thOk/R.INSTALL1077828fd804/CspStandSegmentation/src' g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.6/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.6/RcppArmadillo/include' -I'D:/RCompile/CRANpkg/lib/4.6/lidR/include' -I'D:/RCompile/CRANpkg/lib/4.6/BH/include' -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include" -fopenmp -I../inst/include/ -DRCPP_NO_MODULES -DWITHSETLENGTH -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c 2021-11-12_A1_JF_csp_cost_cpp_functions.cpp -o 2021-11-12_A1_JF_csp_cost_cpp_functions.o In file included from D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp.h:49, from D:/RCompile/CRANpkg/lib/4.6/RcppArmadillo/include/RcppArmadillo.h:35, from 2021-11-12_A1_JF_csp_cost_cpp_functions.cpp:5: D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/Function.h: In constructor 'Rcpp::Function_Impl::Function_Impl(const std::string&, const std::string&)': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/Function.h:75:65: error: 'R_NamespaceRegistry' was not declared in this scope 75 | Shield env(R_getVarEx(Rf_install(ns.c_str()), R_NamespaceRegistry, FALSE, R_UnboundValue)); | ^~~~~~~~~~~~~~~~~~~ make[1]: *** [D:/RCompile/recent/R/etc/x64/Makeconf:304: 2021-11-12_A1_JF_csp_cost_cpp_functions.o] Error 1 make[1]: Leaving directory '/d/temp/2026_04_17_01_50_00_1722/Rtmpq2thOk/R.INSTALL1077828fd804/CspStandSegmentation/src' ERROR: compilation failed for package 'CspStandSegmentation' * removing 'd:/Rcompile/CRANpkg/lib/4.6/CspStandSegmentation' * restoring previous 'd:/Rcompile/CRANpkg/lib/4.6/CspStandSegmentation'