R Under development (unstable) (2025-05-11 r88197 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # 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 >> setting environment variables: PKG_LIBS = $(SHLIB_OPENMP_CFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) PKG_CPPFLAGS = -I../inst/include $(SHLIB_OPENMP_CFLAGS) >> LinkingTo : RcppArmadillo, Rcpp CLINK_CPPFLAGS = -I"D:/RCompile/CRANpkg/lib/4.6/RcppArmadillo/include" -I"D:/RCompile/CRANpkg/lib/4.6/Rcpp/include" >> Program source : 1 : 2 : // includes from the plugin 3 : #include 4 : #include 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 file26e2055cc3b8e( SEXP n_, SEXP mu_, SEXP sigma_) ; 23 : } 24 : 25 : // definition 26 : SEXP file26e2055cc3b8e(SEXP n_, SEXP mu_, SEXP sigma_) { 27 : BEGIN_RCPP 28 : 29 : using namespace Rcpp; 30 : int n = as(n_); 31 : arma::vec mu = as(mu_); 32 : arma::mat sigma = as(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 : } 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="file26e2055cc3b8e.dll" WIN=64 TCLBIN= OBJECTS="file26e2055cc3b8e.o" make would use make[1]: Entering directory '/d/temp/2025_05_12_15_00_17_7775/Rtmpm41wuZ' g++ -std=gnu++17 -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 file26e2055cc3b8e.cpp -o file26e2055cc3b8e.o if test "zfile26e2055cc3b8e.o" != "z"; then \ if test -e "file26e2055cc3b8e-win.def"; then \ echo g++ -std=gnu++17 -shared -s -static-libgcc -o file26e2055cc3b8e.dll file26e2055cc3b8e-win.def file26e2055cc3b8e.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++17 -shared -s -static-libgcc -o file26e2055cc3b8e.dll file26e2055cc3b8e-win.def file26e2055cc3b8e.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 file26e2055cc3b8e.o | sed -n 's/^.* [BCDRT] / /p' | sed -e '/[.]refptr[.]/d' -e '/[.]weak[.]/d' | sed 's/[^ ][^ ]*/"&"/g' >> tmp.def; \ echo g++ -std=gnu++17 -shared -s -static-libgcc -o file26e2055cc3b8e.dll tmp.def file26e2055cc3b8e.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++17 -shared -s -static-libgcc -o file26e2055cc3b8e.dll tmp.def file26e2055cc3b8e.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/2025_05_12_15_00_17_7775/Rtmpm41wuZ' Loaded glmnet 4.1-8 Attaching package: 'dplyr' The following object is masked from 'package:MASS': select The following object is masked from 'package:testthat': matches 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 0 | WARN 0 | SKIP 0 | PASS 68 ] > > proc.time() user system elapsed 3.65 0.75 31.03