* installing *source* package 'MTLR' ...
** this is package 'MTLR' version '0.2.1'
** package 'MTLR' successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: 'g++.exe (GCC) 14.3.0'
make[1]: Entering directory '/d/temp/2026_04_17_01_50_00_1722/RtmpaQBv7b/R.INSTALL788074731936/MTLR/src'
g++ -std=gnu++20 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.6/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.6/RcppArmadillo/include' -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c MTLRHelper.cpp -o MTLRHelper.o
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 MTLRHelper.cpp:1:
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));
| ^~~~~~~~~~~~~~~~~~~
MTLRHelper.cpp: In function 'double mtlr_objVal(arma::rowvec, arma::mat, arma::mat, double, arma::vec)':
MTLRHelper.cpp:49:20: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare]
49 | for(int j = 0; j < thetas.n_cols; j++) {
| ~~^~~~~~~~~~~~~~~
MTLRHelper.cpp:50:21: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare]
50 | for(int i =0; i < thetas.n_rows; i++){
| ~~^~~~~~~~~~~~~~~
MTLRHelper.cpp: In function 'arma::rowvec mtlr_grad(arma::rowvec, arma::mat, arma::mat, double, arma::vec)':
MTLRHelper.cpp:137:20: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare]
137 | for(int j = 0; j < thetas.n_cols; j++) {
| ~~^~~~~~~~~~~~~~~
MTLRHelper.cpp:138:21: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare]
138 | for(int i =0; i < thetas.n_rows; i++){
| ~~^~~~~~~~~~~~~~~
MTLRHelper.cpp: In function 'arma::mat mtlr_predict(arma::rowvec, arma::mat)':
MTLRHelper.cpp:281:20: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare]
281 | for(int j = 0; j < thetas.n_cols; j++) {
| ~~^~~~~~~~~~~~~~~
MTLRHelper.cpp:282:21: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare]
282 | for(int i =0; i < thetas.n_rows; i++){
| ~~^~~~~~~~~~~~~~~
make[1]: *** [D:/RCompile/recent/R/etc/x64/Makeconf:304: MTLRHelper.o] Error 1
make[1]: Leaving directory '/d/temp/2026_04_17_01_50_00_1722/RtmpaQBv7b/R.INSTALL788074731936/MTLR/src'
ERROR: compilation failed for package 'MTLR'
* removing 'd:/Rcompile/CRANpkg/lib/4.6/MTLR'
* restoring previous 'd:/Rcompile/CRANpkg/lib/4.6/MTLR'