* using log directory 'd:/Rcompile/CRANpkg/local/3.5/coda.base.Rcheck' * using R version 3.5.3 (2019-03-11) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'coda.base/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'coda.base' version '0.2.2' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'coda.base' can be installed ... ERROR Installation failed. See 'd:/Rcompile/CRANpkg/local/3.5/coda.base.Rcheck/00install.out' for details. * DONE The installation logfile: * installing *source* package 'coda.base' ... ** package 'coda.base' successfully unpacked and MD5 sums checked ** libs *** arch - i386 make[1]: Entering directory `/cygdrive/d/temp/RtmpI9G66j/R.INSTALL261891f5027/coda.base/src-i386' d:/Compiler/gcc-4.9.3/mingw_32/bin/g++ -I"D:/RCompile/recent/R-3.5.3/include" -DNDEBUG -I"d:/RCompile/CRANpkg/lib/3.5/Rcpp/include" -I"d:/RCompile/CRANpkg/lib/3.5/RcppArmadillo/include" -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c RcppExports.cpp -o RcppExports.o d:/Compiler/gcc-4.9.3/mingw_32/bin/g++ -I"D:/RCompile/recent/R-3.5.3/include" -DNDEBUG -I"d:/RCompile/CRANpkg/lib/3.5/Rcpp/include" -I"d:/RCompile/CRANpkg/lib/3.5/RcppArmadillo/include" -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c balance_optim.cpp -o balance_optim.o In file included from balance_optim.cpp:5:0: balance.h: In member function 'void Balance::init()': balance.h:27:23: error: in C++98 'L0' must be initialized by constructor, not by '{...}' arma::uvec L0 = {0}, R0 = {1}; ^ balance.h:27:23: error: conversion from '' to 'arma::uvec {aka arma::Col}' is ambiguous balance.h:27:23: note: candidates are: In file included from d:/RCompile/CRANpkg/lib/3.5/RcppArmadillo/include/armadillo:162:0, from d:/RCompile/CRANpkg/lib/3.5/RcppArmadillo/include/RcppArmadilloForward.h:49, from d:/RCompile/CRANpkg/lib/3.5/RcppArmadillo/include/RcppArmadillo.h:31, from balance_optim.cpp:4: d:/RCompile/CRANpkg/lib/3.5/RcppArmadillo/include/armadillo_bits/Col_bones.hpp:47:21: note: arma::Col::Col(const string&) [with eT = unsigned int; std::string = std::basic_string] inline Col(const std::string& text); ^ d:/RCompile/CRANpkg/lib/3.5/RcppArmadillo/include/armadillo_bits/Col_bones.hpp:44:21: note: arma::Col::Col(const char*) [with eT = unsigned int] inline Col(const char* text); ^ d:/RCompile/CRANpkg/lib/3.5/RcppArmadillo/include/armadillo_bits/Col_bones.hpp:36:19: note: arma::Col::Col(arma::uword) [with eT = unsigned int; arma::uword = unsigned int] inline explicit Col(const uword n_elem); ^ d:/RCompile/CRANpkg/lib/3.5/RcppArmadillo/include/armadillo_bits/Col_bones.hpp:35:19: note: arma::Col::Col(const arma::Col&) [with eT = unsigned int] inline Col(const Col& X); ^ In file included from balance_optim.cpp:5:0: balance.h:27:33: error: in C++98 'R0' must be initialized by constructor, not by '{...}' arma::uvec L0 = {0}, R0 = {1}; ^ balance.h:27:33: error: converting to 'arma::uvec {aka arma::Col}' from initializer list would use explicit constructor 'arma::Col::Col(arma::uword) [with eT = unsigned int; arma::uword = unsigned int]' balance.h: In member function 'bool Balance::hasNext()': balance.h:107:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return(!( (uL.n_elem == 1) & (uR.n_elem + 1 == N) & (uL[0] == N-1) )); ^ balance.h:107:64: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return(!( (uL.n_elem == 1) & (uR.n_elem + 1 == N) & (uL[0] == N-1) )); ^ balance.h: In member function 'int Balance::get_n()': balance.h:129:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(unsigned int i=0; i