Running 'testthat.R' [196s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(priorsense)
  > 
  > test_check("priorsense")
  This is posterior version 1.7.0
  
  Attaching package: 'posterior'
  
  The following objects are masked from 'package:stats':
  
      mad, sd, var
  
  The following objects are masked from 'package:base':
  
      %in%, match
  
  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="fileee3c21517350.dll" WIN=64 TCLBIN= OBJECTS="fileee3c21517350.o"
  
  make would use
  make[1]: Entering directory '/d/temp/2026_04_17_01_50_00_1722/RtmpUN5Twq'
  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/RtmpErPLoN/RLIBS_f0784cda6a96/RcppEigen/include/"  -I"D:/temp/2026_04_17_01_50_00_1722/RtmpErPLoN/RLIBS_f0784cda6a96/RcppEigen/include/unsupported"  -I"D:/temp/2026_04_17_01_50_00_1722/RtmpErPLoN/RLIBS_f0784cda6a96/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 fileee3c21517350.cpp -o fileee3c21517350.o
  if test "zfileee3c21517350.o" != "z"; then \
    if test -e "fileee3c21517350-win.def"; then \
      echo g++   -shared  -s -static-libgcc -o fileee3c21517350.dll fileee3c21517350-win.def fileee3c21517350.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 fileee3c21517350.dll fileee3c21517350-win.def fileee3c21517350.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 fileee3c21517350.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 fileee3c21517350.dll tmp.def fileee3c21517350.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 fileee3c21517350.dll tmp.def fileee3c21517350.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/RtmpUN5Twq'
  Saving _problems/test_moment_matching-12.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="fileee3c657f159e.dll" WIN=64 TCLBIN= OBJECTS="fileee3c657f159e.o"
  
  make would use
  make[1]: Entering directory '/d/temp/2026_04_17_01_50_00_1722/RtmpUN5Twq'
  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/RtmpErPLoN/RLIBS_f0784cda6a96/RcppEigen/include/"  -I"D:/temp/2026_04_17_01_50_00_1722/RtmpErPLoN/RLIBS_f0784cda6a96/RcppEigen/include/unsupported"  -I"D:/temp/2026_04_17_01_50_00_1722/RtmpErPLoN/RLIBS_f0784cda6a96/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 fileee3c657f159e.cpp -o fileee3c657f159e.o
  if test "zfileee3c657f159e.o" != "z"; then \
    if test -e "fileee3c657f159e-win.def"; then \
      echo g++   -shared  -s -static-libgcc -o fileee3c657f159e.dll fileee3c657f159e-win.def fileee3c657f159e.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 fileee3c657f159e.dll fileee3c657f159e-win.def fileee3c657f159e.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 fileee3c657f159e.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 fileee3c657f159e.dll tmp.def fileee3c657f159e.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 fileee3c657f159e.dll tmp.def fileee3c657f159e.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/RtmpUN5Twq'
  Saving _problems/test_resample-12.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="fileee3c6f9017bd.dll" WIN=64 TCLBIN= OBJECTS="fileee3c6f9017bd.o"
  
  make would use
  make[1]: Entering directory '/d/temp/2026_04_17_01_50_00_1722/RtmpUN5Twq'
  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/RtmpErPLoN/RLIBS_f0784cda6a96/RcppEigen/include/"  -I"D:/temp/2026_04_17_01_50_00_1722/RtmpErPLoN/RLIBS_f0784cda6a96/RcppEigen/include/unsupported"  -I"D:/temp/2026_04_17_01_50_00_1722/RtmpErPLoN/RLIBS_f0784cda6a96/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 fileee3c6f9017bd.cpp -o fileee3c6f9017bd.o
  if test "zfileee3c6f9017bd.o" != "z"; then \
    if test -e "fileee3c6f9017bd-win.def"; then \
      echo g++   -shared  -s -static-libgcc -o fileee3c6f9017bd.dll fileee3c6f9017bd-win.def fileee3c6f9017bd.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 fileee3c6f9017bd.dll fileee3c6f9017bd-win.def fileee3c6f9017bd.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 fileee3c6f9017bd.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 fileee3c6f9017bd.dll tmp.def fileee3c6f9017bd.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 fileee3c6f9017bd.dll tmp.def fileee3c6f9017bd.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/RtmpUN5Twq'
  Saving _problems/test_rstan-10.R
  [ FAIL 6 | WARN 0 | SKIP 2 | PASS 123 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • On CRAN (2): 'test_cmdstan.R:5:3',
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_moment_matching.R:4:1'): (code run outside of `test_that()`) ───
  Error in `compileCode(f, code, language = language, verbose = verbose)`:  Model = modelee3c6e44393__namespace::modelee3c6e44393_; 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: fileee3c21517350.o] Error 1
  Backtrace:
       ▆
    1. ├─base::suppressWarnings(...) at test_moment_matching.R:4:1
    2. │ └─base::withCallingHandlers(...)
    3. └─rstan::stan(...)
    4.   └─rstan::stan_model(...)
    5.     └─rstan:::cxxfunctionplus(...)
    6.       ├─pkgbuild::with_build_tools(...)
    7.       │ └─pkgbuild:::withr_with_path(rtools_path(), code)
    8.       │   └─base::force(code)
    9.       └─inline::cxxfunction(...)
   10.         └─inline:::compileCode(f, code, language = language, verbose = verbose)
  ── Error ('test_moment_matching.R:4:1'): (code run outside of `test_that()`) ───
  Error in `sink(type = "output")`: invalid connection
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(...) at test_moment_matching.R:4:1
   2. │ └─base::withCallingHandlers(...)
   3. └─rstan::stan(...)
   4.   └─rstan::stan_model(...)
   5.     └─rstan:::cxxfunctionplus(...)
   6.       └─base::sink(type = "output")
  ── Error ('test_resample.R:4:1'): (code run outside of `test_that()`) ──────────
  Error in `compileCode(f, code, language = language, verbose = verbose)`: odel = modelee3c40713933__namespace::modelee3c40713933_; 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: fileee3c657f159e.o] Error 1
  Backtrace:
       ▆
    1. ├─base::suppressWarnings(...) at test_resample.R:4:1
    2. │ └─base::withCallingHandlers(...)
    3. └─rstan::stan(...)
    4.   └─rstan::stan_model(...)
    5.     └─rstan:::cxxfunctionplus(...)
    6.       ├─pkgbuild::with_build_tools(...)
    7.       │ └─pkgbuild:::withr_with_path(rtools_path(), code)
    8.       │   └─base::force(code)
    9.       └─inline::cxxfunction(...)
   10.         └─inline:::compileCode(f, code, language = language, verbose = verbose)
  ── Error ('test_resample.R:4:1'): (code run outside of `test_that()`) ──────────
  Error in `sink(type = "output")`: invalid connection
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(...) at test_resample.R:4:1
   2. │ └─base::withCallingHandlers(...)
   3. └─rstan::stan(...)
   4.   └─rstan::stan_model(...)
   5.     └─rstan:::cxxfunctionplus(...)
   6.       └─base::sink(type = "output")
  ── Error ('test_rstan.R:5:1'): (code run outside of `test_that()`) ─────────────
  Error in `compileCode(f, code, language = language, verbose = verbose)`: odel = modelee3c6e423ab8__namespace::modelee3c6e423ab8_; 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: fileee3c6f9017bd.o] Error 1
  Backtrace:
      ▆
   1. └─rstan::stan(...) at test_rstan.R:5:1
   2.   └─rstan::stan_model(...)
   3.     └─rstan:::cxxfunctionplus(...)
   4.       ├─pkgbuild::with_build_tools(...)
   5.       │ └─pkgbuild:::withr_with_path(rtools_path(), code)
   6.       │   └─base::force(code)
   7.       └─inline::cxxfunction(...)
   8.         └─inline:::compileCode(f, code, language = language, verbose = verbose)
  ── Error ('test_rstan.R:5:1'): (code run outside of `test_that()`) ─────────────
  Error in `sink(type = "output")`: invalid connection
  Backtrace:
      ▆
   1. └─rstan::stan(...) at test_rstan.R:5:1
   2.   └─rstan::stan_model(...)
   3.     └─rstan:::cxxfunctionplus(...)
   4.       └─base::sink(type = "output")
  
  [ FAIL 6 | WARN 0 | SKIP 2 | PASS 123 ]
  Error:
  ! Test failures.
  Execution halted