Running 'testthat.R' [76s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(wdnet)
  > 
  > test_check("wdnet")
  using C++ compiler: 'g++.exe (GCC) 12.2.0'
  In file included from D:/RCompile/recent/R/include/R.h:71,
                   from D:/RCompile/CRANpkg/lib/4.3/Rcpp/include/Rcpp/r/headers.h:66,
                   from D:/RCompile/CRANpkg/lib/4.3/Rcpp/include/RcppCommon.h:30,
                   from D:/RCompile/CRANpkg/lib/4.3/Rcpp/include/Rcpp.h:27,
                   from file449879be3d2d.cpp:1:
  D:/RCompile/recent/R/include/R_ext/Complex.h:65:12: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
     65 |     struct {
        |            ^
  using C++ compiler: 'g++.exe (GCC) 12.2.0'
  
  cc1plus.exe: out of memory allocating 2101247 bytes
  make[1]: *** [D:/RCompile/recent/R/etc/x64/Makeconf:272: file44987e7a1b25.o] Error 1
  make[1]: Entering directory '/d/temp/RtmpSwsq79/sourceCpp-x86_64-w64-mingw32-1.0.10/sourcecpp_449863eb6f32'
  g++ -std=gnu++17  -I"D:/RCompile/recent/R/include" -DNDEBUG   -I"D:/RCompile/CRANpkg/lib/4.3/Rcpp/include" -I"D:/temp/RtmpSwsq79/sourceCpp-x86_64-w64-mingw32-1.0.10"   -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include"     -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c file44987e7a1b25.cpp -o file44987e7a1b25.o
  make[1]: Leaving directory '/d/temp/RtmpSwsq79/sourceCpp-x86_64-w64-mingw32-1.0.10/sourcecpp_449863eb6f32'
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 8 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-rpanet.R:76:5'): Test rpanet with customized preference functions ──
  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. └─wdnet::rpa_control_preference(...) at test-rpanet.R:76:4
   2.   └─wdnet:::compile_pref_func(preference)
   3.     └─RcppXPtrUtils::cppXPtr(code = temp)
   4.       └─Rcpp::cppFunction(...)
   5.         └─Rcpp::sourceCpp(...)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 8 ]
  Error: Test failures
  Execution halted