Running 'testthat.R' [24s]
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(MUGS)
  > 
  > test_check("MUGS")
  Loading required package: foreach
  Loading required package: iterators
  Loading required package: snow
  
  Attaching package: 'snow'
  
  The following objects are masked from 'package:parallel':
  
      closeNode, clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
      clusterExport, clusterMap, clusterSplit, makeCluster, parApply,
      parCapply, parLapply, parRapply, parSapply, recvData, recvOneData,
      sendData, splitIndices, stopCluster
  
  
  Attaching package: 'inline'
  
  The following object is masked from 'package:Rcpp':
  
      registerPlugin
  
  
  ERROR(s) during compilation: source code errors or compiler configuration errors!
  make cmd is
    make -f "D:/RCompile/recent/R/etc/x64/Makeconf" -f "D:/RCompile/recent/R/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="file10ff42bc1b95.dll" WIN=64 TCLBIN= OBJECTS="file10ff42bc1b95.o"
  
  make would use
  make[1]: Entering directory '/d/temp/2026_04_17_01_50_00_1722/RtmpwLi9Tl'
  g++ -std=gnu++20  -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include -fopenmp -I"D:/RCompile/CRANpkg/lib/4.6/RcppArmadillo/include" -I"D:/RCompile/CRANpkg/lib/4.6/Rcpp/include"   -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include"      -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign    -c file10ff42bc1b95.cpp -o file10ff42bc1b95.o
  if test "zfile10ff42bc1b95.o" != "z"; then \
    if test -e "file10ff42bc1b95-win.def"; then \
      echo g++ -std=gnu++20   -shared  -s -static-libgcc -o file10ff42bc1b95.dll file10ff42bc1b95-win.def file10ff42bc1b95.o -fopenmp -L"D:/RCompile/recent/R/bin/x64" -lRlapack -L"D:/RCompile/recent/R/bin/x64" -lRblas -lgfortran -lquadmath -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++ -std=gnu++20   -shared  -s -static-libgcc -o file10ff42bc1b95.dll file10ff42bc1b95-win.def file10ff42bc1b95.o -fopenmp -L"D:/RCompile/recent/R/bin/x64" -lRlapack -L"D:/RCompile/recent/R/bin/x64" -lRblas -lgfortran -lquadmath -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 file10ff42bc1b95.o | sed -n 's/^.* [BCDRT] / /p' | sed -e '/[.]refptr[.]/d' -e '/[.]weak[.]/d' | sed 's/[^ ][^ ]*/"&"/g'  >> tmp.def; \
      echo g++ -std=gnu++20   -shared  -s -static-libgcc -o file10ff42bc1b95.dll tmp.def file10ff42bc1b95.o -fopenmp -L"D:/RCompile/recent/R/bin/x64" -lRlapack -L"D:/RCompile/recent/R/bin/x64" -lRblas -lgfortran -lquadmath -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++ -std=gnu++20   -shared  -s -static-libgcc -o file10ff42bc1b95.dll tmp.def file10ff42bc1b95.o -fopenmp -L"D:/RCompile/recent/R/bin/x64" -lRlapack -L"D:/RCompile/recent/R/bin/x64" -lRblas -lgfortran -lquadmath -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/RtmpwLi9Tl'
  
  Program source:
    1: 
    2: // includes from the plugin
    3: #include <RcppArmadillo.h>
    4: #include <Rcpp.h>
    5: 
    6: 
    7: #ifndef BEGIN_RCPP
    8: #define BEGIN_RCPP
    9: #endif
   10: 
   11: #ifndef END_RCPP
   12: #define END_RCPP
   13: #endif
   14: 
   15: using namespace Rcpp;
   16: 
   17: // user includes
   18: 
   19: 
   20: // declarations
   21: extern "C" {
   22: SEXP file10ff42bc1b95( SEXP n_, SEXP mu_, SEXP sigma_) ;
   23: }
   24: 
   25: // definition
   26: SEXP file10ff42bc1b95(SEXP n_, SEXP mu_, SEXP sigma_) {
   27: BEGIN_RCPP
   28: 
   29:   using namespace Rcpp;
   30:   int n = as<int>(n_);
   31:   arma::vec mu = as<arma::vec>(mu_);
   32:   arma::mat sigma = as<arma::mat>(sigma_);
   33:   int ncols = sigma.n_cols; // Corrected syntax
   34:   arma::mat Y = arma::randn(n, ncols);
   35:   return wrap(arma::repmat(mu, 1, n).t() + Y * arma::chol(sigma));
   36:   
   37: END_RCPP
   38: }
  
  Compilation ERROR, function(s)/method(s) not created!
  Loaded glmnet 4.1-10
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:MASS':
  
      select
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  Type 'citation("pROC")' for a citation.
  
  Attaching package: 'pROC'
  
  The following objects are masked from 'package:stats':
  
      cov, smooth, var
  
  Setting levels: control = 0, case = 1
  Setting direction: controls > cases
  Setting levels: control = 0, case = 1
  Setting direction: controls > cases
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 48 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-DataGen_rare_group.R:25:3'): DataGen_rare_group returns correct output structure and dimensions ──
  Error in `compileCode(f, code, language = language, verbose = verbose)`: using C++ compiler: 'g++.exe (GCC) 14.3.0'
  In file included from D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp.h:49,
                   from D:/RCompile/CRANpkg/lib/4.6/RcppArmadillo/include/RcppArmadillo.h:35,
                   from file10ff42bc1b95.cpp:3:
  D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/Function.h: In constructor 'Rcpp::Function_Impl<StoragePolicy>::Function_Impl(const std::string&, const std::string&)':
  D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/Function.h:75:65: error: 'R_NamespaceRegistry' was not declared in this scope
     75 |             Shield<SEXP> env(R_getVarEx(Rf_install(ns.c_str()), R_NamespaceRegistry, FALSE, R_UnboundValue));
        |                                                                 ^~~~~~~~~~~~~~~~~~~
  make[1]: *** [D:/RCompile/recent/R/etc/x64/Makeconf:304: file10ff42bc1b95.o] Error 1
  Backtrace:
      ▆
   1. └─MUGS::DataGen_rare_group(...) at test-DataGen_rare_group.R:25:3
   2.   └─inline::cxxfunction(...)
   3.     └─inline:::compileCode(f, code, language = language, verbose = verbose)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 48 ]
  Error:
  ! Test failures.
  Execution halted