Running 'testthat.R' [270s]
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(bnns)
  > 
  > test_check("bnns")
  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="file115c45b3470a1.dll" WIN=64 TCLBIN= OBJECTS="file115c45b3470a1.o"
  
  make would use
  make[1]: Entering directory '/d/temp/2026_04_17_01_50_00_1722/RtmpMXyGmR'
  g++  -std=gnu++17 -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/RtmpM57o5l/RLIBS_bba0572f9ce/RcppEigen/include/"  -I"D:/temp/2026_04_17_01_50_00_1722/RtmpM57o5l/RLIBS_bba0572f9ce/RcppEigen/include/unsupported"  -I"D:/temp/2026_04_17_01_50_00_1722/RtmpM57o5l/RLIBS_bba0572f9ce/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 -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 file115c45b3470a1.cpp -o file115c45b3470a1.o
  if test "zfile115c45b3470a1.o" != "z"; then \
    if test -e "file115c45b3470a1-win.def"; then \
      echo g++   -shared  -s -static-libgcc -o file115c45b3470a1.dll file115c45b3470a1-win.def file115c45b3470a1.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 -L"D:/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/bin/x64" -lR ; \
      g++   -shared  -s -static-libgcc -o file115c45b3470a1.dll file115c45b3470a1-win.def file115c45b3470a1.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 -L"D:/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/bin/x64" -lR ; \
    else \
      echo EXPORTS > tmp.def; \
      nm file115c45b3470a1.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 file115c45b3470a1.dll tmp.def file115c45b3470a1.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 -L"D:/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/bin/x64" -lR ; \
      g++   -shared  -s -static-libgcc -o file115c45b3470a1.dll tmp.def file115c45b3470a1.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 -L"D:/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/bin/x64" -lR ; \
      rm -f tmp.def; \
    fi \
  fi
  make[1]: Leaving directory '/d/temp/2026_04_17_01_50_00_1722/RtmpMXyGmR'
  Saving _problems/test-bnns-6.R
  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="file115c411476565.dll" WIN=64 TCLBIN= OBJECTS="file115c411476565.o"
  
  make would use
  make[1]: Entering directory '/d/temp/2026_04_17_01_50_00_1722/RtmpMXyGmR'
  g++  -std=gnu++17 -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/RtmpM57o5l/RLIBS_bba0572f9ce/RcppEigen/include/"  -I"D:/temp/2026_04_17_01_50_00_1722/RtmpM57o5l/RLIBS_bba0572f9ce/RcppEigen/include/unsupported"  -I"D:/temp/2026_04_17_01_50_00_1722/RtmpM57o5l/RLIBS_bba0572f9ce/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 -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 file115c411476565.cpp -o file115c411476565.o
  if test "zfile115c411476565.o" != "z"; then \
    if test -e "file115c411476565-win.def"; then \
      echo g++   -shared  -s -static-libgcc -o file115c411476565.dll file115c411476565-win.def file115c411476565.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 -L"D:/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/bin/x64" -lR ; \
      g++   -shared  -s -static-libgcc -o file115c411476565.dll file115c411476565-win.def file115c411476565.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 -L"D:/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/bin/x64" -lR ; \
    else \
      echo EXPORTS > tmp.def; \
      nm file115c411476565.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 file115c411476565.dll tmp.def file115c411476565.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 -L"D:/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/bin/x64" -lR ; \
      g++   -shared  -s -static-libgcc -o file115c411476565.dll tmp.def file115c411476565.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 -L"D:/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/bin/x64" -lR ; \
      rm -f tmp.def; \
    fi \
  fi
  make[1]: Leaving directory '/d/temp/2026_04_17_01_50_00_1722/RtmpMXyGmR'
  Saving _problems/test-bnns-58.R
  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="file115c456ee1e4.dll" WIN=64 TCLBIN= OBJECTS="file115c456ee1e4.o"
  
  make would use
  make[1]: Entering directory '/d/temp/2026_04_17_01_50_00_1722/RtmpMXyGmR'
  g++  -std=gnu++17 -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/RtmpM57o5l/RLIBS_bba0572f9ce/RcppEigen/include/"  -I"D:/temp/2026_04_17_01_50_00_1722/RtmpM57o5l/RLIBS_bba0572f9ce/RcppEigen/include/unsupported"  -I"D:/temp/2026_04_17_01_50_00_1722/RtmpM57o5l/RLIBS_bba0572f9ce/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 -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 file115c456ee1e4.cpp -o file115c456ee1e4.o
  if test "zfile115c456ee1e4.o" != "z"; then \
    if test -e "file115c456ee1e4-win.def"; then \
      echo g++   -shared  -s -static-libgcc -o file115c456ee1e4.dll file115c456ee1e4-win.def file115c456ee1e4.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 -L"D:/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/bin/x64" -lR ; \
      g++   -shared  -s -static-libgcc -o file115c456ee1e4.dll file115c456ee1e4-win.def file115c456ee1e4.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 -L"D:/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/bin/x64" -lR ; \
    else \
      echo EXPORTS > tmp.def; \
      nm file115c456ee1e4.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 file115c456ee1e4.dll tmp.def file115c456ee1e4.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 -L"D:/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/bin/x64" -lR ; \
      g++   -shared  -s -static-libgcc -o file115c456ee1e4.dll tmp.def file115c456ee1e4.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 -L"D:/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/bin/x64" -lR ; \
      rm -f tmp.def; \
    fi \
  fi
  make[1]: Leaving directory '/d/temp/2026_04_17_01_50_00_1722/RtmpMXyGmR'
  Saving _problems/test-bnns-90.R
  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="file115c43c6b7a33.dll" WIN=64 TCLBIN= OBJECTS="file115c43c6b7a33.o"
  
  make would use
  make[1]: Entering directory '/d/temp/2026_04_17_01_50_00_1722/RtmpMXyGmR'
  g++  -std=gnu++17 -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/RtmpM57o5l/RLIBS_bba0572f9ce/RcppEigen/include/"  -I"D:/temp/2026_04_17_01_50_00_1722/RtmpM57o5l/RLIBS_bba0572f9ce/RcppEigen/include/unsupported"  -I"D:/temp/2026_04_17_01_50_00_1722/RtmpM57o5l/RLIBS_bba0572f9ce/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 -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 file115c43c6b7a33.cpp -o file115c43c6b7a33.o
  if test "zfile115c43c6b7a33.o" != "z"; then \
    if test -e "file115c43c6b7a33-win.def"; then \
      echo g++   -shared  -s -static-libgcc -o file115c43c6b7a33.dll file115c43c6b7a33-win.def file115c43c6b7a33.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 -L"D:/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/bin/x64" -lR ; \
      g++   -shared  -s -static-libgcc -o file115c43c6b7a33.dll file115c43c6b7a33-win.def file115c43c6b7a33.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 -L"D:/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/bin/x64" -lR ; \
    else \
      echo EXPORTS > tmp.def; \
      nm file115c43c6b7a33.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 file115c43c6b7a33.dll tmp.def file115c43c6b7a33.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 -L"D:/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/bin/x64" -lR ; \
      g++   -shared  -s -static-libgcc -o file115c43c6b7a33.dll tmp.def file115c43c6b7a33.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 -L"D:/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/bin/x64" -lR ; \
      rm -f tmp.def; \
    fi \
  fi
  make[1]: Leaving directory '/d/temp/2026_04_17_01_50_00_1722/RtmpMXyGmR'
  Saving _problems/test-bnns-137.R
  Setting levels: control = 0, case = 1
  Setting direction: controls < cases
  [ FAIL 8 | WARN 0 | SKIP 0 | PASS 56 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-bnns.R:6:3'): bnns works for regression (linear output with/without normalization(including constant)) ──
  Error in `compileCode(f, code, language = language, verbose = verbose)`: l = model115c42cf6704e__namespace::model115c42cf6704e_; 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/etc/x64/Makeconf:304: file115c45b3470a1.o] Error 1
  Backtrace:
       ▆
    1. ├─bnns::bnns(...) at test-bnns.R:6:3
    2. └─bnns:::bnns.default(...)
    3.   └─bnns::bnns_train(...)
    4.     ├─base::suppressWarnings(...)
    5.     │ └─base::withCallingHandlers(...)
    6.     └─rstan::stan(...)
    7.       └─rstan::stan_model(...)
    8.         └─rstan:::cxxfunctionplus(...)
    9.           ├─pkgbuild::with_build_tools(...)
   10.           │ └─pkgbuild:::withr_with_path(rtools_path(), code)
   11.           │   └─base::force(code)
   12.           └─inline::cxxfunction(...)
   13.             └─inline:::compileCode(f, code, language = language, verbose = verbose)
  ── Error ('test-bnns.R:6:3'): bnns works for regression (linear output with/without normalization(including constant)) ──
  Error in `sink(type = "output")`: invalid connection
  Backtrace:
      ▆
   1. ├─bnns::bnns(...) at test-bnns.R:6:3
   2. └─bnns:::bnns.default(...)
   3.   └─bnns::bnns_train(...)
   4.     ├─base::suppressWarnings(...)
   5.     │ └─base::withCallingHandlers(...)
   6.     └─rstan::stan(...)
   7.       └─rstan::stan_model(...)
   8.         └─rstan:::cxxfunctionplus(...)
   9.           └─base::sink(type = "output")
  ── Error ('test-bnns.R:52:3'): bnns works for regression (with custom prior_weights, prior_bias and prior_sigma) ──
  Error in `compileCode(f, code, language = language, verbose = verbose)`: l = model115c423406a95__namespace::model115c423406a95_; 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/etc/x64/Makeconf:304: file115c411476565.o] Error 1
  Backtrace:
       ▆
    1. ├─bnns::bnns(...) at test-bnns.R:52:3
    2. └─bnns:::bnns.default(...)
    3.   └─bnns::bnns_train(...)
    4.     ├─base::suppressWarnings(...)
    5.     │ └─base::withCallingHandlers(...)
    6.     └─rstan::stan(...)
    7.       └─rstan::stan_model(...)
    8.         └─rstan:::cxxfunctionplus(...)
    9.           ├─pkgbuild::with_build_tools(...)
   10.           │ └─pkgbuild:::withr_with_path(rtools_path(), code)
   11.           │   └─base::force(code)
   12.           └─inline::cxxfunction(...)
   13.             └─inline:::compileCode(f, code, language = language, verbose = verbose)
  ── Error ('test-bnns.R:52:3'): bnns works for regression (with custom prior_weights, prior_bias and prior_sigma) ──
  Error in `sink(type = "output")`: invalid connection
  Backtrace:
      ▆
   1. ├─bnns::bnns(...) at test-bnns.R:52:3
   2. └─bnns:::bnns.default(...)
   3.   └─bnns::bnns_train(...)
   4.     ├─base::suppressWarnings(...)
   5.     │ └─base::withCallingHandlers(...)
   6.     └─rstan::stan(...)
   7.       └─rstan::stan_model(...)
   8.         └─rstan:::cxxfunctionplus(...)
   9.           └─base::sink(type = "output")
  ── Error ('test-bnns.R:90:3'): bnns works for binary classification (sigmoid output) ──
  Error in `compileCode(f, code, language = language, verbose = verbose)`: el = model115c44430198a__namespace::model115c44430198a_; 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/etc/x64/Makeconf:304: file115c456ee1e4.o] Error 1
  Backtrace:
       ▆
    1. ├─bnns::bnns(...) at test-bnns.R:90:3
    2. └─bnns:::bnns.default(...)
    3.   └─bnns::bnns_train(...)
    4.     ├─base::suppressWarnings(...)
    5.     │ └─base::withCallingHandlers(...)
    6.     └─rstan::stan(...)
    7.       └─rstan::stan_model(...)
    8.         └─rstan:::cxxfunctionplus(...)
    9.           ├─pkgbuild::with_build_tools(...)
   10.           │ └─pkgbuild:::withr_with_path(rtools_path(), code)
   11.           │   └─base::force(code)
   12.           └─inline::cxxfunction(...)
   13.             └─inline:::compileCode(f, code, language = language, verbose = verbose)
  ── Error ('test-bnns.R:90:3'): bnns works for binary classification (sigmoid output) ──
  Error in `sink(type = "output")`: invalid connection
  Backtrace:
      ▆
   1. ├─bnns::bnns(...) at test-bnns.R:90:3
   2. └─bnns:::bnns.default(...)
   3.   └─bnns::bnns_train(...)
   4.     ├─base::suppressWarnings(...)
   5.     │ └─base::withCallingHandlers(...)
   6.     └─rstan::stan(...)
   7.       └─rstan::stan_model(...)
   8.         └─rstan:::cxxfunctionplus(...)
   9.           └─base::sink(type = "output")
  ── Error ('test-bnns.R:137:3'): bnns works for multiclass classification (softmax output) ──
  Error in `compileCode(f, code, language = language, verbose = verbose)`: l = model115c4597658ca__namespace::model115c4597658ca_; 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/etc/x64/Makeconf:304: file115c43c6b7a33.o] Error 1
  Backtrace:
       ▆
    1. ├─bnns::bnns(...) at test-bnns.R:137:3
    2. └─bnns:::bnns.default(...)
    3.   └─bnns::bnns_train(...)
    4.     ├─base::suppressWarnings(...)
    5.     │ └─base::withCallingHandlers(...)
    6.     └─rstan::stan(...)
    7.       └─rstan::stan_model(...)
    8.         └─rstan:::cxxfunctionplus(...)
    9.           ├─pkgbuild::with_build_tools(...)
   10.           │ └─pkgbuild:::withr_with_path(rtools_path(), code)
   11.           │   └─base::force(code)
   12.           └─inline::cxxfunction(...)
   13.             └─inline:::compileCode(f, code, language = language, verbose = verbose)
  ── Error ('test-bnns.R:137:3'): bnns works for multiclass classification (softmax output) ──
  Error in `sink(type = "output")`: invalid connection
  Backtrace:
      ▆
   1. ├─bnns::bnns(...) at test-bnns.R:137:3
   2. └─bnns:::bnns.default(...)
   3.   └─bnns::bnns_train(...)
   4.     ├─base::suppressWarnings(...)
   5.     │ └─base::withCallingHandlers(...)
   6.     └─rstan::stan(...)
   7.       └─rstan::stan_model(...)
   8.         └─rstan:::cxxfunctionplus(...)
   9.           └─base::sink(type = "output")
  
  [ FAIL 8 | WARN 0 | SKIP 0 | PASS 56 ]
  Error:
  ! Test failures.
  Execution halted