* using log directory 'd:/Rcompile/CRANpkg/local/4.1/r2sundials.Rcheck' * using R version 4.1.3 (2022-03-10) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'r2sundials/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'r2sundials' version '6.5.0-3' * 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 'r2sundials' can be installed ... ERROR Installation failed. See 'd:/Rcompile/CRANpkg/local/4.1/r2sundials.Rcheck/00install.out' for details. * DONE The installation logfile: * installing *source* package 'r2sundials' ... ** package 'r2sundials' successfully unpacked and MD5 sums checked ** using staged installation ** libs *** arch - i386 make[1]: Entering directory '/d/temp/RtmpiYLDon/R.INSTALL13490171d6343/r2sundials/src-i386' d:/Compiler/rtools40/mingw32/bin/g++ -std=gnu++11 -I"D:/RCompile/recent/R-4.1.3/include" -DNDEBUG -I../inst/include -I ../inst/include/sundials -DNO_FPRINTF_OUTPUT -I'd:/RCompile/CRANpkg/lib/4.1/Rcpp/include' -I'd:/RCompile/CRANpkg/lib/4.1/RcppArmadillo/include' -I'd:/RCompile/CRANpkg/lib/4.1/rmumps/include' -I"d:/Compiler/gcc-4.9.3/local330/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c RcppExports.cpp -o RcppExports.o In file included from ../inst/include/sundials/sundials_context.h:44, from ../inst/include/cvodes/cvodes.h:21, from ../inst/include/r2sundials.h:4, from RcppExports.cpp:4: ../inst/include/sundials/sundials_context.hpp: In constructor 'sundials::Context::Context(void*)': ../inst/include/sundials/sundials_context.hpp:31:20: error: 'make_unique' is not a member of 'std' sunctx_ = std::make_unique(); ^~~~~~~~~~~ ../inst/include/sundials/sundials_context.hpp:31:20: note: 'std::make_unique' is defined in header ''; did you forget to '#include '? ../inst/include/sundials/sundials_context.hpp:23:1: +#include ../inst/include/sundials/sundials_context.hpp:31:20: sunctx_ = std::make_unique(); ^~~~~~~~~~~ ../inst/include/sundials/sundials_context.hpp:31:42: error: expected primary-expression before '>' token sunctx_ = std::make_unique(); ^ ../inst/include/sundials/sundials_context.hpp:31:44: error: expected primary-expression before ')' token sunctx_ = std::make_unique(); ^ make[1]: *** [D:/RCompile/recent/R-4.1.3/etc/i386/Makeconf:245: RcppExports.o] Error 1 make[1]: Leaving directory '/d/temp/RtmpiYLDon/R.INSTALL13490171d6343/r2sundials/src-i386' ERROR: compilation failed for package 'r2sundials' * removing 'd:/Rcompile/CRANpkg/lib/4.1/r2sundials' * restoring previous 'd:/Rcompile/CRANpkg/lib/4.1/r2sundials'