* using log directory 'd:/Rcompile/CRANpkg/local/4.6/RcppXPtrUtils.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 14:03:16 UTC * checking for file 'RcppXPtrUtils/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'RcppXPtrUtils' version '0.1.3' * 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 'RcppXPtrUtils' can be installed ... OK * checking installed package size ... OK * checking package 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 ... [0s] OK * checking loading without being on the library search path ... [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 ... [2s] OK * checking Rd files ... [0s] 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 examples ... [0s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [8s] ERROR Running 'testthat.R' [8s] Running the tests in 'tests/testthat.R' failed. Complete output: > Sys.setenv("R_TESTS" = "") > library(testthat) > library(RcppXPtrUtils) > test_check("RcppXPtrUtils") Generated code for function definition: -------------------------------------------------------- #include using namespace Rcpp; // [[Rcpp::export]] NumericVector execute_cpp(SEXP func_, int n, double l) { typedef SEXP (*funcPtr)(int, double); funcPtr func = *XPtr(func_); return func(n, l); } Generated extern "C" functions -------------------------------------------------------- #include #ifdef RCPP_USE_GLOBAL_ROSTREAM Rcpp::Rostream& Rcpp::Rcout = Rcpp::Rcpp_cout_get(); Rcpp::Rostream& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get(); #endif // execute_cpp NumericVector execute_cpp(SEXP func_, int n, double l); RcppExport SEXP sourceCpp_1_execute_cpp(SEXP func_SEXP, SEXP nSEXP, SEXP lSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< SEXP >::type func_(func_SEXP); Rcpp::traits::input_parameter< int >::type n(nSEXP); Rcpp::traits::input_parameter< double >::type l(lSEXP); rcpp_result_gen = Rcpp::wrap(execute_cpp(func_, n, l)); return rcpp_result_gen; END_RCPP } Generated R functions ------------------------------------------------------- `.sourceCpp_1_DLLInfo` <- dyn.load('D:/temp/2026_04_17_01_50_00_1722/Rtmpsrlxt6/sourceCpp-x86_64-w64-mingw32-1.1.1/sourcecpp_e914314c4e1a/sourceCpp_2.dll') execute_cpp <- Rcpp:::sourceCppFunction(function(func_, n, l) {}, FALSE, `.sourceCpp_1_DLLInfo`, 'sourceCpp_1_execute_cpp') rm(`.sourceCpp_1_DLLInfo`) Building shared library -------------------------------------------------------- DIR: D:/temp/2026_04_17_01_50_00_1722/Rtmpsrlxt6/sourceCpp-x86_64-w64-mingw32-1.1.1/sourcecpp_e914314c4e1a D:/RCompile/recent/R/bin/x64/R CMD SHLIB -o "sourceCpp_2.dll" "filee914439b231.cpp" using C++ compiler: 'g++.exe (GCC) 14.3.0' make[1]: Entering directory '/d/temp/2026_04_17_01_50_00_1722/Rtmpsrlxt6/sourceCpp-x86_64-w64-mingw32-1.1.1/sourcecpp_e914314c4e1a' g++ -std=gnu++20 -I"D:/RCompile/recent/R/include" -DNDEBUG -I"D:/RCompile/CRANpkg/lib/4.6/Rcpp/include" -I"D:/temp/2026_04_17_01_50_00_1722/Rtmpsrlxt6/sourceCpp-x86_64-w64-mingw32-1.1.1" -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c filee914439b231.cpp -o filee914439b231.o In file included from D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp.h:49, from filee914439b231.cpp:1: 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: filee914439b231.o] Error 1 make[1]: Leaving directory '/d/temp/2026_04_17_01_50_00_1722/Rtmpsrlxt6/sourceCpp-x86_64-w64-mingw32-1.1.1/sourcecpp_e914314c4e1a' [ FAIL 1 | WARN 0 | SKIP 0 | PASS 12 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-check.R:3:1'): (code run outside of `test_that()`) ───────────── Error in `sourceCpp(code = code, env = env, rebuild = rebuild, cacheDir = cacheDir, showOutput = showOutput, verbose = verbose, echo = echo)`: Error 1 occurred building shared library. Backtrace: ▆ 1. └─Rcpp::cppFunction(...) at test-check.R:3:1 2. └─Rcpp::sourceCpp(...) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 12 ] Error: ! Test failures. Execution halted * checking PDF version of manual ... [19s] OK * checking HTML version of manual ... [1s] OK * DONE Status: 1 ERROR