Last updated on 2026-11-16 18:51:45 CET.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 0.1.1 | 60.50 | 623.67 | 684.17 | OK | |
| r-devel-linux-x86_64-debian-gcc | 0.1.1 | 45.02 | 522.26 | 567.28 | OK | |
| r-devel-linux-x86_64-fedora-clang | 0.1.1 | 47.00 | 350.62 | 397.62 | OK | |
| r-devel-linux-x86_64-fedora-gcc | 0.1.1 | 48.00 | 464.46 | 512.46 | OK | |
| r-devel-windows-x86_64 | 0.1.1 | 76.00 | 440.00 | 516.00 | ERROR | |
| r-patched-linux-x86_64 | 0.1.1 | 56.90 | 659.34 | 716.24 | OK | |
| r-release-linux-x86_64 | 0.1.1 | 58.97 | 642.28 | 701.25 | OK | |
| r-release-macos-arm64 | 0.1.1 | 16.00 | 113.00 | 129.00 | OK | |
| r-release-macos-x86_64 | 0.1.1 | 44.00 | 668.00 | 712.00 | OK | |
| r-release-windows-x86_64 | 0.1.1 | 73.00 | 320.00 | 393.00 | ERROR | |
| r-oldrel-macos-arm64 | 0.1.1 | OK | ||||
| r-oldrel-macos-x86_64 | 0.1.1 | 39.00 | 614.00 | 653.00 | OK | |
| r-oldrel-windows-x86_64 | 0.1.1 | 90.00 | 452.00 | 542.00 | ERROR |
Version: 0.1.1
Check: tests
Result: ERROR
Running 'testthat.R' [104s]
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(bonsaiforest)
Attaching package: 'bonsaiforest'
The following object is masked from 'package:testthat':
compare
>
> test_check("bonsaiforest")
Compiling Stan program...
specified C++17
make cmd is
make -f "D:/RCompile/recent/R/etc/x64/Makeconf" -f "D:/RCompile/recent/R/share/make/winshlib.mk" CXX='$(CXX17) $(CXX17STD)' CXXFLAGS='$(CXX17FLAGS)' CXXPICFLAGS='$(CXX17PICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX17LDFLAGS)' SHLIB_LD='$(SHLIB_CXX17LD)' SHLIB="file7f3d4ed3291a.dll" WIN=64 TCLBIN= OBJECTS="file7f3d4ed3291a.o"
make would use
make[1]: Entering directory '/d/temp/2026_11_08_01_50_00_17898/Rtmpc1hOGL'
g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I"D:/RCompile/CRANpkg/lib/4.7/Rcpp/include/" -I"D:/temp/2026_11_08_01_50_00_17898/RtmpY10N9S/RLIBS_d1d304bf6b0e/RcppEigen/include/" -I"D:/temp/2026_11_08_01_50_00_17898/RtmpY10N9S/RLIBS_d1d304bf6b0e/RcppEigen/include/unsupported" -I"D:/temp/2026_11_08_01_50_00_17898/RtmpY10N9S/RLIBS_d1d304bf6b0e/BH/include" -I"D:/RCompile/CRANpkg/lib/4.7/StanHeaders/include/src/" -I"D:/RCompile/CRANpkg/lib/4.7/StanHeaders/include/" -I"D:/RCompile/CRANpkg/lib/4.7/RcppParallel/include/" -DRCPP_PARALLEL_USE_TBB=1 -DTBB_INTERFACE_NEW -ID:/RCompile/CRANpkg/lib/4.7/RcppParallel/include -I"D:/RCompile/CRANpkg/lib/4.7/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.7/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 file7f3d4ed3291a.cpp -o file7f3d4ed3291a.o
if test "zfile7f3d4ed3291a.o" != "z"; then \
if test -e "file7f3d4ed3291a-win.def"; then \
echo g++ -shared -s -static-libgcc -o file7f3d4ed3291a.dll file7f3d4ed3291a-win.def file7f3d4ed3291a.o "D:/RCompile/CRANpkg/lib/4.7/rstan/lib/x64/libStanServices.a" -L"D:/RCompile/CRANpkg/lib/4.7/StanHeaders/libs/x64" -lStanHeaders -L"D:/RCompile/CRANpkg/lib/4.7/RcppParallel/lib/x64" -ltbb -LD:/RCompile/CRANpkg/lib/4.7/RcppParallel/libs/x64 -lRcppParallel -LD:/RCompile/CRANpkg/lib/4.7/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/bin/x64" -lR ; \
g++ -shared -s -static-libgcc -o file7f3d4ed3291a.dll file7f3d4ed3291a-win.def file7f3d4ed3291a.o "D:/RCompile/CRANpkg/lib/4.7/rstan/lib/x64/libStanServices.a" -L"D:/RCompile/CRANpkg/lib/4.7/StanHeaders/libs/x64" -lStanHeaders -L"D:/RCompile/CRANpkg/lib/4.7/RcppParallel/lib/x64" -ltbb -LD:/RCompile/CRANpkg/lib/4.7/RcppParallel/libs/x64 -lRcppParallel -LD:/RCompile/CRANpkg/lib/4.7/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/bin/x64" -lR ; \
else \
echo EXPORTS > tmp.def; \
nm file7f3d4ed3291a.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 file7f3d4ed3291a.dll tmp.def file7f3d4ed3291a.o "D:/RCompile/CRANpkg/lib/4.7/rstan/lib/x64/libStanServices.a" -L"D:/RCompile/CRANpkg/lib/4.7/StanHeaders/libs/x64" -lStanHeaders -L"D:/RCompile/CRANpkg/lib/4.7/RcppParallel/lib/x64" -ltbb -LD:/RCompile/CRANpkg/lib/4.7/RcppParallel/libs/x64 -lRcppParallel -LD:/RCompile/CRANpkg/lib/4.7/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/bin/x64" -lR ; \
g++ -shared -s -static-libgcc -o file7f3d4ed3291a.dll tmp.def file7f3d4ed3291a.o "D:/RCompile/CRANpkg/lib/4.7/rstan/lib/x64/libStanServices.a" -L"D:/RCompile/CRANpkg/lib/4.7/StanHeaders/libs/x64" -lStanHeaders -L"D:/RCompile/CRANpkg/lib/4.7/RcppParallel/lib/x64" -ltbb -LD:/RCompile/CRANpkg/lib/4.7/RcppParallel/libs/x64 -lRcppParallel -LD:/RCompile/CRANpkg/lib/4.7/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/bin/x64" -lR ; \
rm -f tmp.def; \
fi \
fi
make[1]: Leaving directory '/d/temp/2026_11_08_01_50_00_17898/Rtmpc1hOGL'
Saving _problems/test-horseshoe-14.R
[ FAIL 2 | WARN 25 | SKIP 12 | PASS 68 ]
══ Skipped tests (12) ══════════════════════════════════════════════════════════
• On CRAN (12): 'test-horseshoe.R:60:3', 'test-plot.R:1:1', 'test-plot.R:6:1',
'test-plot.R:11:1', 'test-plot.R:16:1', 'test-print.R:1:1',
'test-print.R:6:1', 'test-print.R:11:1', 'test-print.R:16:1',
'test-simulation.R:12:1', 'test-simulation.R:19:1', 'test-simulation.R:26:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-horseshoe.R:2:3'): horseshoe outputs the right elements for survival ──
Error in `compileCode(f, code, language = language, verbose = verbose)`: odel = model7f3d44d5c5b0__namespace::model7f3d44d5c5b0_; 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.7/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.7/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/etc/x64/Makeconf:304: file7f3d4ed3291a.o] Error 1
Backtrace:
▆
1. ├─base::suppressWarnings(...) at test-horseshoe.R:2:3
2. │ └─base::withCallingHandlers(...)
3. └─bonsaiforest::horseshoe(...)
4. ├─base::do.call(fit_function, args = list_arguments)
5. └─bonsaiforest (local) `<fn>`(iter = 20, warmup = 10, chains = 1, seed = 0, control = `<named list>`)
6. └─brms::brm(...)
7. └─brms::do_call(compile_model, compile_args)
8. └─brms:::eval2(call, envir = args, enclos = envir)
9. └─base::eval(expr, envir, ...)
10. └─base::eval(expr, envir, ...)
11. └─brms (local) .fun(...)
12. └─brms (local) .compile_model(model, ...)
13. ├─brms:::eval_silent(...)
14. │ └─base::eval(expr, envir)
15. │ └─base::eval(expr, envir)
16. └─brms::do_call(rstan::stan_model, args)
17. └─brms:::eval2(call, envir = args, enclos = envir)
18. └─base::eval(expr, envir, ...)
19. └─base::eval(expr, envir, ...)
20. └─rstan (local) .fun(model_code = .x1)
21. └─rstan:::cxxfunctionplus(...)
22. ├─pkgbuild::with_build_tools(...)
23. │ └─pkgbuild:::withr_with_path(rtools_path(), code)
24. │ └─base::force(code)
25. └─inline::cxxfunction(...)
26. └─inline:::compileCode(f, code, language = language, verbose = verbose)
── Error ('test-horseshoe.R:2:3'): horseshoe outputs the right elements for survival ──
Error in `sink(type = "output")`: invalid connection
Backtrace:
▆
1. ├─base::suppressWarnings(...) at test-horseshoe.R:2:3
2. │ └─base::withCallingHandlers(...)
3. └─bonsaiforest::horseshoe(...)
4. ├─base::do.call(fit_function, args = list_arguments)
5. └─bonsaiforest (local) `<fn>`(iter = 20, warmup = 10, chains = 1, seed = 0, control = `<named list>`)
6. └─brms::brm(...)
7. └─brms::do_call(compile_model, compile_args)
8. └─brms:::eval2(call, envir = args, enclos = envir)
9. └─base::eval(expr, envir, ...)
10. └─base::eval(expr, envir, ...)
11. └─brms (local) .fun(...)
12. └─brms (local) .compile_model(model, ...)
13. ├─brms:::eval_silent(...)
14. │ └─base::eval(expr, envir)
15. │ └─base::eval(expr, envir)
16. └─brms::do_call(rstan::stan_model, args)
17. └─brms:::eval2(call, envir = args, enclos = envir)
18. └─base::eval(expr, envir, ...)
19. └─base::eval(expr, envir, ...)
20. └─rstan (local) .fun(model_code = .x1)
21. └─rstan:::cxxfunctionplus(...)
22. └─base::sink(type = "output")
[ FAIL 2 | WARN 25 | SKIP 12 | PASS 68 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-windows-x86_64
Version: 0.1.1
Check: tests
Result: ERROR
Running 'testthat.R' [102s]
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(bonsaiforest)
Attaching package: 'bonsaiforest'
The following object is masked from 'package:testthat':
compare
>
> test_check("bonsaiforest")
Compiling Stan program...
specified C++17
make cmd is
make -f "D:/RCompile/recent/R-4.6.2/etc/x64/Makeconf" -f "D:/RCompile/recent/R-4.6.2/share/make/winshlib.mk" CXX='$(CXX17) $(CXX17STD)' CXXFLAGS='$(CXX17FLAGS)' CXXPICFLAGS='$(CXX17PICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX17LDFLAGS)' SHLIB_LD='$(SHLIB_CXX17LD)' SHLIB="file74e5c21736c62.dll" WIN=64 TCLBIN= OBJECTS="file74e5c21736c62.o"
make would use
make[1]: Entering directory '/d/temp/2026_11_14_01_50_00_6838/Rtmp0IVUA6'
g++ -std=gnu++17 -I"D:/RCompile/recent/R-4.6.2/include" -DNDEBUG -I"D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/" -I"D:/temp/2026_11_14_01_50_00_6838/RtmpU1w3vU/RLIBS_cf33446384d5/RcppEigen/include/" -I"D:/temp/2026_11_14_01_50_00_6838/RtmpU1w3vU/RLIBS_cf33446384d5/RcppEigen/include/unsupported" -I"D:/temp/2026_11_14_01_50_00_6838/RtmpU1w3vU/RLIBS_cf33446384d5/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 file74e5c21736c62.cpp -o file74e5c21736c62.o
if test "zfile74e5c21736c62.o" != "z"; then \
if test -e "file74e5c21736c62-win.def"; then \
echo g++ -shared -s -static-libgcc -o file74e5c21736c62.dll file74e5c21736c62-win.def file74e5c21736c62.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.2/bin/x64" -lR ; \
g++ -shared -s -static-libgcc -o file74e5c21736c62.dll file74e5c21736c62-win.def file74e5c21736c62.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.2/bin/x64" -lR ; \
else \
echo EXPORTS > tmp.def; \
nm file74e5c21736c62.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 file74e5c21736c62.dll tmp.def file74e5c21736c62.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.2/bin/x64" -lR ; \
g++ -shared -s -static-libgcc -o file74e5c21736c62.dll tmp.def file74e5c21736c62.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.2/bin/x64" -lR ; \
rm -f tmp.def; \
fi \
fi
make[1]: Leaving directory '/d/temp/2026_11_14_01_50_00_6838/Rtmp0IVUA6'
Saving _problems/test-horseshoe-14.R
[ FAIL 2 | WARN 25 | SKIP 12 | PASS 68 ]
══ Skipped tests (12) ══════════════════════════════════════════════════════════
• On CRAN (12): 'test-horseshoe.R:60:3', 'test-plot.R:1:1', 'test-plot.R:6:1',
'test-plot.R:11:1', 'test-plot.R:16:1', 'test-print.R:1:1',
'test-print.R:6:1', 'test-print.R:11:1', 'test-print.R:16:1',
'test-simulation.R:12:1', 'test-simulation.R:19:1', 'test-simulation.R:26:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-horseshoe.R:2:3'): horseshoe outputs the right elements for survival ──
Error in `compileCode(f, code, language = language, verbose = verbose)`: del74e5c409b31d9__namespace::model74e5c409b31d9_; 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.2/etc/x64/Makeconf:304: file74e5c21736c62.o] Error 1
Backtrace:
▆
1. ├─base::suppressWarnings(...) at test-horseshoe.R:2:3
2. │ └─base::withCallingHandlers(...)
3. └─bonsaiforest::horseshoe(...)
4. ├─base::do.call(fit_function, args = list_arguments)
5. └─bonsaiforest (local) `<fn>`(iter = 20, warmup = 10, chains = 1, seed = 0, control = `<named list>`)
6. └─brms::brm(...)
7. └─brms::do_call(compile_model, compile_args)
8. └─brms:::eval2(call, envir = args, enclos = envir)
9. └─base::eval(expr, envir, ...)
10. └─base::eval(expr, envir, ...)
11. └─brms (local) .fun(...)
12. └─brms (local) .compile_model(model, ...)
13. ├─brms:::eval_silent(...)
14. │ └─base::eval(expr, envir)
15. │ └─base::eval(expr, envir)
16. └─brms::do_call(rstan::stan_model, args)
17. └─brms:::eval2(call, envir = args, enclos = envir)
18. └─base::eval(expr, envir, ...)
19. └─base::eval(expr, envir, ...)
20. └─rstan (local) .fun(model_code = .x1)
21. └─rstan:::cxxfunctionplus(...)
22. ├─pkgbuild::with_build_tools(...)
23. │ └─pkgbuild:::withr_with_path(rtools_path(), code)
24. │ └─base::force(code)
25. └─inline::cxxfunction(...)
26. └─inline:::compileCode(f, code, language = language, verbose = verbose)
── Error ('test-horseshoe.R:2:3'): horseshoe outputs the right elements for survival ──
Error in `sink(type = "output")`: invalid connection
Backtrace:
▆
1. ├─base::suppressWarnings(...) at test-horseshoe.R:2:3
2. │ └─base::withCallingHandlers(...)
3. └─bonsaiforest::horseshoe(...)
4. ├─base::do.call(fit_function, args = list_arguments)
5. └─bonsaiforest (local) `<fn>`(iter = 20, warmup = 10, chains = 1, seed = 0, control = `<named list>`)
6. └─brms::brm(...)
7. └─brms::do_call(compile_model, compile_args)
8. └─brms:::eval2(call, envir = args, enclos = envir)
9. └─base::eval(expr, envir, ...)
10. └─base::eval(expr, envir, ...)
11. └─brms (local) .fun(...)
12. └─brms (local) .compile_model(model, ...)
13. ├─brms:::eval_silent(...)
14. │ └─base::eval(expr, envir)
15. │ └─base::eval(expr, envir)
16. └─brms::do_call(rstan::stan_model, args)
17. └─brms:::eval2(call, envir = args, enclos = envir)
18. └─base::eval(expr, envir, ...)
19. └─base::eval(expr, envir, ...)
20. └─rstan (local) .fun(model_code = .x1)
21. └─rstan:::cxxfunctionplus(...)
22. └─base::sink(type = "output")
[ FAIL 2 | WARN 25 | SKIP 12 | PASS 68 ]
Error:
! Test failures.
Execution halted
Flavor: r-release-windows-x86_64
Version: 0.1.1
Check: tests
Result: ERROR
Running 'testthat.R' [149s]
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(bonsaiforest)
Attaching package: 'bonsaiforest'
The following object is masked from 'package:testthat':
compare
>
> test_check("bonsaiforest")
Compiling Stan program...
make cmd is
make -f "D:/RCompile/recent/R-4.5.3/etc/x64/Makeconf" -f "D:/RCompile/recent/R-4.5.3/share/make/winshlib.mk" CXX='$(CXX17) $(CXX17STD)' CXXFLAGS='$(CXX17FLAGS)' CXXPICFLAGS='$(CXX17PICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX17LDFLAGS)' SHLIB_LD='$(SHLIB_CXX17LD)' SHLIB="file48fb479121e12.dll" WIN=64 TCLBIN= OBJECTS="file48fb479121e12.o"
make would use
make[1]: Entering directory '/d/temp/2026_11_14_01_50_00_6838/RtmpQjrjEI'
g++ -std=gnu++17 -I"D:/RCompile/recent/R-4.5.3/include" -DNDEBUG -I"D:/RCompile/CRANpkg/lib/4.5/Rcpp/include/" -I"D:/temp/2026_11_14_01_50_00_6838/RtmpC2l1Xn/RLIBS_9bc64766d7a5f/RcppEigen/include/" -I"D:/temp/2026_11_14_01_50_00_6838/RtmpC2l1Xn/RLIBS_9bc64766d7a5f/RcppEigen/include/unsupported" -I"D:/temp/2026_11_14_01_50_00_6838/RtmpC2l1Xn/RLIBS_9bc64766d7a5f/BH/include" -I"D:/RCompile/CRANpkg/lib/4.5/StanHeaders/include/src/" -I"D:/RCompile/CRANpkg/lib/4.5/StanHeaders/include/" -I"D:/RCompile/CRANpkg/lib/4.5/RcppParallel/include/" -DRCPP_PARALLEL_USE_TBB=1 -DTBB_INTERFACE_NEW -ID:/RCompile/CRANpkg/lib/4.5/RcppParallel/include -I"D:/RCompile/CRANpkg/lib/4.5/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.5/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 file48fb479121e12.cpp -o file48fb479121e12.o
if test "zfile48fb479121e12.o" != "z"; then \
if test -e "file48fb479121e12-win.def"; then \
echo g++ -shared -s -static-libgcc -o file48fb479121e12.dll file48fb479121e12-win.def file48fb479121e12.o "D:/RCompile/CRANpkg/lib/4.5/rstan/lib/x64/libStanServices.a" -L"D:/RCompile/CRANpkg/lib/4.5/StanHeaders/libs/x64" -lStanHeaders -L"D:/RCompile/CRANpkg/lib/4.5/RcppParallel/lib/x64" -ltbb -LD:/RCompile/CRANpkg/lib/4.5/RcppParallel/libs/x64 -lRcppParallel -LD:/RCompile/CRANpkg/lib/4.5/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.5.3/bin/x64" -lR ; \
g++ -shared -s -static-libgcc -o file48fb479121e12.dll file48fb479121e12-win.def file48fb479121e12.o "D:/RCompile/CRANpkg/lib/4.5/rstan/lib/x64/libStanServices.a" -L"D:/RCompile/CRANpkg/lib/4.5/StanHeaders/libs/x64" -lStanHeaders -L"D:/RCompile/CRANpkg/lib/4.5/RcppParallel/lib/x64" -ltbb -LD:/RCompile/CRANpkg/lib/4.5/RcppParallel/libs/x64 -lRcppParallel -LD:/RCompile/CRANpkg/lib/4.5/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.5.3/bin/x64" -lR ; \
else \
echo EXPORTS > tmp.def; \
nm file48fb479121e12.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 file48fb479121e12.dll tmp.def file48fb479121e12.o "D:/RCompile/CRANpkg/lib/4.5/rstan/lib/x64/libStanServices.a" -L"D:/RCompile/CRANpkg/lib/4.5/StanHeaders/libs/x64" -lStanHeaders -L"D:/RCompile/CRANpkg/lib/4.5/RcppParallel/lib/x64" -ltbb -LD:/RCompile/CRANpkg/lib/4.5/RcppParallel/libs/x64 -lRcppParallel -LD:/RCompile/CRANpkg/lib/4.5/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.5.3/bin/x64" -lR ; \
g++ -shared -s -static-libgcc -o file48fb479121e12.dll tmp.def file48fb479121e12.o "D:/RCompile/CRANpkg/lib/4.5/rstan/lib/x64/libStanServices.a" -L"D:/RCompile/CRANpkg/lib/4.5/StanHeaders/libs/x64" -lStanHeaders -L"D:/RCompile/CRANpkg/lib/4.5/RcppParallel/lib/x64" -ltbb -LD:/RCompile/CRANpkg/lib/4.5/RcppParallel/libs/x64 -lRcppParallel -LD:/RCompile/CRANpkg/lib/4.5/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.5.3/bin/x64" -lR ; \
rm -f tmp.def; \
fi \
fi
make[1]: Leaving directory '/d/temp/2026_11_14_01_50_00_6838/RtmpQjrjEI'
Saving _problems/test-horseshoe-14.R
[ FAIL 2 | WARN 25 | SKIP 12 | PASS 68 ]
══ Skipped tests (12) ══════════════════════════════════════════════════════════
• On CRAN (12): 'test-horseshoe.R:60:3', 'test-plot.R:1:1', 'test-plot.R:6:1',
'test-plot.R:11:1', 'test-plot.R:16:1', 'test-print.R:1:1',
'test-print.R:6:1', 'test-print.R:11:1', 'test-print.R:16:1',
'test-simulation.R:12:1', 'test-simulation.R:19:1', 'test-simulation.R:26:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-horseshoe.R:2:3'): horseshoe outputs the right elements for survival ──
Error in `compileCode(f, code, language = language, verbose = verbose)`: del48fb46bcd6e76__namespace::model48fb46bcd6e76_; 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.5/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.5/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.5.3/etc/x64/Makeconf:302: file48fb479121e12.o] Error 1
Backtrace:
▆
1. ├─base::suppressWarnings(...) at test-horseshoe.R:2:3
2. │ └─base::withCallingHandlers(...)
3. └─bonsaiforest::horseshoe(...)
4. ├─base::do.call(fit_function, args = list_arguments)
5. └─bonsaiforest (local) `<fn>`(iter = 20, warmup = 10, chains = 1, seed = 0, control = `<named list>`)
6. └─brms::brm(...)
7. └─brms::do_call(compile_model, compile_args)
8. └─brms:::eval2(call, envir = args, enclos = envir)
9. └─base::eval(expr, envir, ...)
10. └─base::eval(expr, envir, ...)
11. └─brms (local) .fun(...)
12. └─brms (local) .compile_model(model, ...)
13. ├─brms:::eval_silent(...)
14. │ └─base::eval(expr, envir)
15. │ └─base::eval(expr, envir)
16. └─brms::do_call(rstan::stan_model, args)
17. └─brms:::eval2(call, envir = args, enclos = envir)
18. └─base::eval(expr, envir, ...)
19. └─base::eval(expr, envir, ...)
20. └─rstan (local) .fun(model_code = .x1)
21. └─rstan:::cxxfunctionplus(...)
22. ├─pkgbuild::with_build_tools(...)
23. │ └─pkgbuild:::withr_with_path(rtools_path(), code)
24. │ └─base::force(code)
25. └─inline::cxxfunction(...)
26. └─inline:::compileCode(f, code, language = language, verbose = verbose)
── Error ('test-horseshoe.R:2:3'): horseshoe outputs the right elements for survival ──
Error in `sink(type = "output")`: invalid connection
Backtrace:
▆
1. ├─base::suppressWarnings(...) at test-horseshoe.R:2:3
2. │ └─base::withCallingHandlers(...)
3. └─bonsaiforest::horseshoe(...)
4. ├─base::do.call(fit_function, args = list_arguments)
5. └─bonsaiforest (local) `<fn>`(iter = 20, warmup = 10, chains = 1, seed = 0, control = `<named list>`)
6. └─brms::brm(...)
7. └─brms::do_call(compile_model, compile_args)
8. └─brms:::eval2(call, envir = args, enclos = envir)
9. └─base::eval(expr, envir, ...)
10. └─base::eval(expr, envir, ...)
11. └─brms (local) .fun(...)
12. └─brms (local) .compile_model(model, ...)
13. ├─brms:::eval_silent(...)
14. │ └─base::eval(expr, envir)
15. │ └─base::eval(expr, envir)
16. └─brms::do_call(rstan::stan_model, args)
17. └─brms:::eval2(call, envir = args, enclos = envir)
18. └─base::eval(expr, envir, ...)
19. └─base::eval(expr, envir, ...)
20. └─rstan (local) .fun(model_code = .x1)
21. └─rstan:::cxxfunctionplus(...)
22. └─base::sink(type = "output")
[ FAIL 2 | WARN 25 | SKIP 12 | PASS 68 ]
Error:
! Test failures.
Execution halted
Flavor: r-oldrel-windows-x86_64