* installing *source* package 'spbal' ...
** this is package 'spbal' version '1.0.1'
** package 'spbal' 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/Rtmpo5GVJR/R.INSTALL17c34300c3478/spbal/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/RcppThread/include'   -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include"      -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign    -c RcppExports.cpp -o RcppExports.o
In file included from D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/RcppCommon.h:29,
                 from D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:5:
D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/r/check_r_headers.h:27:21: note: '#pragma message: R.h has been included before any Rcpp headers. This can lead to hard-to-debug errors, and is not necessary. See https://github.com/RcppCore/Rcpp/issues/1410'
   27 |     #pragma message "R.h has been included before any Rcpp headers. This can lead to hard-to-debug errors, and is not necessary. See https://github.com/RcppCore/Rcpp/issues/1410"
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/r/check_r_headers.h:35:21: note: '#pragma message: Rinternals.h has been included before any Rcpp headers. This can lead to hard-to-debug errors, and is not necessary. See https://github.com/RcppCore/Rcpp/issues/1410'
   35 |     #pragma message "Rinternals.h has been included before any Rcpp headers. This can lead to hard-to-debug errors, and is not necessary. See https://github.com/RcppCore/Rcpp/issues/1410"
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp.h:49:
D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/Function.h: In constructor 'Rcpp::Function_Impl<StoragePolicy>::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<SEXP> env(R_getVarEx(Rf_install(ns.c_str()), R_NamespaceRegistry, FALSE, R_UnboundValue));
      |                                                                 ^~~~~~~~~~~~~~~~~~~
make[1]: *** [D:/RCompile/recent/R/etc/x64/Makeconf:304: RcppExports.o] Error 1
make[1]: Leaving directory '/d/temp/2026_04_17_01_50_00_1722/Rtmpo5GVJR/R.INSTALL17c34300c3478/spbal/src'
ERROR: compilation failed for package 'spbal'
* removing 'd:/Rcompile/CRANpkg/lib/4.6/spbal'
* restoring previous 'd:/Rcompile/CRANpkg/lib/4.6/spbal'