Error(s) in re-building vignettes:
--- re-building 'CodeEff_Matrix_usage.Rmd' using rmarkdown
--- finished re-building 'CodeEff_Matrix_usage.Rmd'

--- re-building 'CodeSiteEff_I2_par_usage.Rmd' using rmarkdown
--- finished re-building 'CodeSiteEff_I2_par_usage.Rmd'

--- re-building 'DataGen_rare_group_usage.Rmd' using rmarkdown
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="file140a43735e9f.dll" WIN=64 TCLBIN= OBJECTS="file140a43735e9f.o"

make would use
make[1]: Entering directory '/d/temp/2026_04_17_01_50_00_1722/Rtmpo9o9E1'
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 file140a43735e9f.cpp -o file140a43735e9f.o
if test "zfile140a43735e9f.o" != "z"; then \
  if test -e "file140a43735e9f-win.def"; then \
    echo g++ -std=gnu++20   -shared  -s -static-libgcc -o file140a43735e9f.dll file140a43735e9f-win.def file140a43735e9f.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 file140a43735e9f.dll file140a43735e9f-win.def file140a43735e9f.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 file140a43735e9f.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 file140a43735e9f.dll tmp.def file140a43735e9f.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 file140a43735e9f.dll tmp.def file140a43735e9f.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/Rtmpo9o9E1'

Quitting from DataGen_rare_group_usage.Rmd:37-57 [generate_data]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `compileCode()`:
! 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 file140a43735e9f.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: file140a43735e9f.o] Error 1
---
Backtrace:
    ▆
 1. └─MUGS::DataGen_rare_group(...)
 2.   └─inline::cxxfunction(...)
 3.     └─inline:::compileCode(f, code, language = language, verbose = verbose)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'DataGen_rare_group_usage.Rmd' failed with diagnostics:
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 file140a43735e9f.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: file140a43735e9f.o] Error 1
--- failed re-building 'DataGen_rare_group_usage.Rmd'

--- re-building 'Evaluation_sim_usage.Rmd' using rmarkdown
--- finished re-building 'Evaluation_sim_usage.Rmd'

--- re-building 'GroupEff_par_usage.Rmd' using rmarkdown
--- finished re-building 'GroupEff_par_usage.Rmd'

--- re-building 'get_embed_usage.Rmd' using rmarkdown
--- finished re-building 'get_embed_usage.Rmd'

--- re-building 'main-steps.Rmd' using rmarkdown
--- finished re-building 'main-steps.Rmd'

SUMMARY: processing the following file failed:
  'DataGen_rare_group_usage.Rmd'

Error: Vignette re-building failed.
Execution halted