- using R version 4.6.1 (2026-06-24 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-09-09 09:50:46 UTC
- checking for file 'BayesPostEst/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'BayesPostEst' version '0.4.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 'BayesPostEst' can be installed ... OK
See the install log for details.
- 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 ... [2s] OK
- checking whether the package can be loaded with stated dependencies ... [2s] OK
- checking whether the package can be unloaded cleanly ... [2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s] OK
- checking whether the namespace can be unloaded cleanly ... [2s] OK
- checking loading without being on the library search path ... [2s] 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 ... [7s] 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 installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [4s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [67s] ERROR
Running 'testthat.R' [67s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(BayesPostEst)
>
> test_check("BayesPostEst")
Loading required package: rjags
Loading required package: coda
Linked to JAGS 4.3.1
Loaded modules: basemod,bugs
Attaching package: 'R2jags'
The following object is masked from 'package:coda':
traceplot
Loading required package: Rcpp
Loading 'brms' package (version 2.23.0). Useful instructions
can be found by typing help('brms'). A more detailed introduction
to the package is available through vignette('brms_overview').
Attaching package: 'brms'
The following object is masked from 'package:stats':
ar
Compiling Stan program...
specified C++17
make cmd is
make -f "D:/RCompile/recent/R-4.6.1/etc/x64/Makeconf" -f "D:/RCompile/recent/R-4.6.1/share/make/winshlib.mk" CXX='$(CXX17) $(CXX17STD)' CXXFLAGS='$(CXX17FLAGS)' CXXPICFLAGS='$(CXX17PICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX17LDFLAGS)' SHLIB_LD='$(SHLIB_CXX17LD)' SHLIB="fileb43839796a8f.dll" WIN=64 TCLBIN= OBJECTS="fileb43839796a8f.o"
make would use
make[1]: Entering directory '/d/temp/2026_09_09_01_50_00_18435/RtmpuqTaJH'
g++ -std=gnu++17 -I"D:/RCompile/recent/R-4.6.1/include" -DNDEBUG -I"D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/" -I"D:/temp/2026_09_09_01_50_00_18435/Rtmpgb79K8/RLIBS_1e108709565ee/RcppEigen/include/" -I"D:/temp/2026_09_09_01_50_00_18435/Rtmpgb79K8/RLIBS_1e108709565ee/RcppEigen/include/unsupported" -I"D:/temp/2026_09_09_01_50_00_18435/Rtmpgb79K8/RLIBS_1e108709565ee/BH/include" -I"D:/RCompile/CRANpkg/lib/4.6/StanHeaders/include/src/" -I"D:/RCompile/CRANpkg/lib/4.6/StanHeaders/include/" -I"D:/RCompile/CRANpkg/lib/4.6/RcppParallel/include/" -DRCPP_PARALLEL_USE_TBB=1 -DTBB_INTERFACE_NEW -ID:/RCompile/CRANpkg/lib/4.6/RcppParallel/include -I"D:/RCompile/CRANpkg/lib/4.6/rstan/include" -DEIGEN_NO_DEBUG -DBOOST_DISABLE_ASSERTS -DBOOST_PENDING_INTEGER_LOG2_HPP -DSTAN_THREADS -DUSE_STANC3 -DSTRICT_R_HEADERS -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -D_HAS_AUTO_PTR_ETC=0 -include "D:/RCompile/CRANpkg/lib/4.6/StanHeaders/include/stan/math/prim/fun/Eigen.hpp" -std=c++1y -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c fileb43839796a8f.cpp -o fileb43839796a8f.o
if test "zfileb43839796a8f.o" != "z"; then \
if test -e "fileb43839796a8f-win.def"; then \
echo g++ -shared -s -static-libgcc -o fileb43839796a8f.dll fileb43839796a8f-win.def fileb43839796a8f.o "D:/RCompile/CRANpkg/lib/4.6/rstan/lib/x64/libStanServices.a" -L"D:/RCompile/CRANpkg/lib/4.6/StanHeaders/libs/x64" -lStanHeaders -L"D:/RCompile/CRANpkg/lib/4.6/RcppParallel/lib/x64" -ltbb -LD:/RCompile/CRANpkg/lib/4.6/RcppParallel/libs/x64 -lRcppParallel -LD:/RCompile/CRANpkg/lib/4.6/RcppParallel/lib/x64 -ltbb -ltbbmalloc -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib" -L"D:/RCompile/recent/R-4.6.1/bin/x64" -lR ; \
g++ -shared -s -static-libgcc -o fileb43839796a8f.dll fileb43839796a8f-win.def fileb43839796a8f.o "D:/RCompile/CRANpkg/lib/4.6/rstan/lib/x64/libStanServices.a" -L"D:/RCompile/CRANpkg/lib/4.6/StanHeaders/libs/x64" -lStanHeaders -L"D:/RCompile/CRANpkg/lib/4.6/RcppParallel/lib/x64" -ltbb -LD:/RCompile/CRANpkg/lib/4.6/RcppParallel/libs/x64 -lRcppParallel -LD:/RCompile/CRANpkg/lib/4.6/RcppParallel/lib/x64 -ltbb -ltbbmalloc -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib" -L"D:/RCompile/recent/R-4.6.1/bin/x64" -lR ; \
else \
echo EXPORTS > tmp.def; \
nm fileb43839796a8f.o | sed -n 's/^.* [BCDRT] / /p' | sed -e '/[.]refptr[.]/d' -e '/[.]weak[.]/d' | sed 's/[^ ][^ ]*/"&"/g' >> tmp.def; \
echo g++ -shared -s -static-libgcc -o fileb43839796a8f.dll tmp.def fileb43839796a8f.o "D:/RCompile/CRANpkg/lib/4.6/rstan/lib/x64/libStanServices.a" -L"D:/RCompile/CRANpkg/lib/4.6/StanHeaders/libs/x64" -lStanHeaders -L"D:/RCompile/CRANpkg/lib/4.6/RcppParallel/lib/x64" -ltbb -LD:/RCompile/CRANpkg/lib/4.6/RcppParallel/libs/x64 -lRcppParallel -LD:/RCompile/CRANpkg/lib/4.6/RcppParallel/lib/x64 -ltbb -ltbbmalloc -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib" -L"D:/RCompile/recent/R-4.6.1/bin/x64" -lR ; \
g++ -shared -s -static-libgcc -o fileb43839796a8f.dll tmp.def fileb43839796a8f.o "D:/RCompile/CRANpkg/lib/4.6/rstan/lib/x64/libStanServices.a" -L"D:/RCompile/CRANpkg/lib/4.6/StanHeaders/libs/x64" -lStanHeaders -L"D:/RCompile/CRANpkg/lib/4.6/RcppParallel/lib/x64" -ltbb -LD:/RCompile/CRANpkg/lib/4.6/RcppParallel/libs/x64 -lRcppParallel -LD:/RCompile/CRANpkg/lib/4.6/RcppParallel/lib/x64 -ltbb -ltbbmalloc -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib" -L"D:/RCompile/recent/R-4.6.1/bin/x64" -lR ; \
rm -f tmp.def; \
fi \
fi
make[1]: Leaving directory '/d/temp/2026_09_09_01_50_00_18435/RtmpuqTaJH'
Error in `source_dir()`:
! Failed to evaluate './setup.R'.
Caused by error in `compileCode()`:
! modelb43824524487__namespace::modelb43824524487_; BaseRNG = boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> >]'
22 | return 0.5 * z.p.transpose() * z.inv_e_metric_ * z.p;
D:/RCompile/CRANpkg/lib/4.6/StanHeaders/include/src/stan/mcmc/hmc/hamiltonians/dense_e_metric.hpp:21:0: required from here
21 | double T(dense_e_point& z) {
D:/RCompile/CRANpkg/lib/4.6/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h:654:74: warning: ignoring attributes on template argument 'Eigen::internal::packet_traits<double>::type' {aka '__m128d'} [-Wignored-attributes]
654 | return internal::first_aligned<int(unpacket_traits<DefaultPacketType>::alignment),Derived>(m);
| ^~~~~~~~~
make[1]: *** [D:/RCompile/recent/R-4.6.1/etc/x64/Makeconf:304: fileb43839796a8f.o] Error 1
Backtrace:
▆
1. ├─testthat::test_check("BayesPostEst")
2. │ └─testthat::test_dir(...)
3. │ └─testthat:::test_files(...)
4. │ └─testthat:::test_files_serial(...)
5. │ └─testthat:::test_files_setup_state(...)
6. │ └─testthat::source_test_setup(".", env)
7. │ └─testthat::source_dir(path, "^setup.*\\.[rR]$", env = env, wrap = FALSE)
8. │ └─base::lapply(...)
9. │ └─testthat (local) FUN(X[[i]], ...)
10. │ └─testthat::source_file(...)
11. │ ├─base::withCallingHandlers(...)
12. │ └─base::eval(exprs, env)
13. │ └─base::eval(exprs, env)
14. │ └─base::lapply(r_scripts, source) at ./setup.R:24:1
15. │ └─base (local) FUN(X[[i]], ...)
16. │ ├─base::withVisible(eval(ei, envir))
17. │ └─base::eval(ei, envir)
18. │ └─base::eval(ei, envir)
19. ├─brms::brm(...)
20. │ └─brms::do_call(compile_model, compile_args)
21. │ └─brms:::eval2(call, envir = args, enclos = envir)
22. │ └─base::eval(expr, envir, ...)
23. │ └─base::eval(expr, envir, ...)
24. │ └─brms (local) .fun(...)
25. │ └─brms (local) .compile_model(model, ...)
26. │ ├─brms:::eval_silent(...)
27. │ │ └─base::eval(expr, envir)
28. │ │ └─base::eval(expr, envir)
29. │ └─brms::do_call(rstan::stan_model, args)
30. │ └─brms:::eval2(call, envir = args, enclos = envir)
31. │ └─base::eval(expr, envir, ...)
32. │ └─base::eval(expr, envir, ...)
33. │ └─rstan (local) .fun(model_code = .x1)
34. │ └─rstan:::cxxfunctionplus(...)
35. │ ├─pkgbuild::with_build_tools(...)
36. │ │ └─pkgbuild:::withr_with_path(rtools_path(), code)
37. │ │ └─base::force(code)
38. │ └─inline::cxxfunction(...)
39. │ └─inline:::compileCode(f, code, language = language, verbose = verbose)
40. │ └─base::stop(...)
41. └─base::.handleSimpleError(...)
42. └─testthat (local) h(simpleError(msg, call))
43. └─cli::cli_abort(...)
44. └─rlang::abort(...)
Error in `source_dir()`:
! Failed to evaluate './setup.R'.
Caused by error in `sink()`:
! invalid connection
Backtrace:
▆
1. ├─testthat::test_check("BayesPostEst")
2. │ └─testthat::test_dir(...)
3. │ └─testthat:::test_files(...)
4. │ └─testthat:::test_files_serial(...)
5. │ └─testthat:::test_files_setup_state(...)
6. │ └─testthat::source_test_setup(".", env)
7. │ └─testthat::source_dir(path, "^setup.*\\.[rR]$", env = env, wrap = FALSE)
8. │ └─base::lapply(...)
9. │ └─testthat (local) FUN(X[[i]], ...)
10. │ └─testthat::source_file(...)
11. │ ├─base::withCallingHandlers(...)
12. │ └─base::eval(exprs, env)
13. │ └─base::eval(exprs, env)
14. │ └─base::lapply(r_scripts, source) at ./setup.R:24:1
15. │ └─base (local) FUN(X[[i]], ...)
16. │ ├─base::withVisible(eval(ei, envir))
17. │ └─base::eval(ei, envir)
18. │ └─base::eval(ei, envir)
19. ├─brms::brm(...)
20. │ └─brms::do_call(compile_model, compile_args)
21. │ └─brms:::eval2(call, envir = args, enclos = envir)
22. │ └─base::eval(expr, envir, ...)
23. │ └─base::eval(expr, envir, ...)
24. │ └─brms (local) .fun(...)
25. │ └─brms (local) .compile_model(model, ...)
26. │ ├─brms:::eval_silent(...)
27. │ │ └─base::eval(expr, envir)
28. │ │ └─base::eval(expr, envir)
29. │ └─brms::do_call(rstan::stan_model, args)
30. │ └─brms:::eval2(call, envir = args, enclos = envir)
31. │ └─base::eval(expr, envir, ...)
32. │ └─base::eval(expr, envir, ...)
33. │ └─rstan (local) .fun(model_code = .x1)
34. │ └─rstan:::cxxfunctionplus(...)
35. │ └─base::sink(type = "output")
36. └─base::.handleSimpleError(`<fn>`, "invalid connection", base::quote(sink(type = "output")))
37. └─testthat (local) h(simpleError(msg, call))
38. └─cli::cli_abort(...)
39. └─rlang::abort(...)
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [100s] OK
- checking PDF version of manual ... [20s] OK
- checking HTML version of manual ... [5s] OK
- DONE
Status: 1 ERROR