* using log directory 'd:/Rcompile/CRANpkg/local/3.4/BayClone2.Rcheck' * using R version 3.4.4 (2018-03-15) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'BayClone2/DESCRIPTION' ... OK * this is package 'BayClone2' version '1.1' * 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 'BayClone2' can be installed ... ERROR Installation failed. See 'd:/Rcompile/CRANpkg/local/3.4/BayClone2.Rcheck/00install.out' for details. * DONE The installation logfile: * installing *source* package 'BayClone2' ... ** package 'BayClone2' successfully unpacked and MD5 sums checked ** libs *** arch - i386 make[1]: Entering directory `/cygdrive/d/temp/RtmpGI79n3/R.INSTALL336506d095a21/BayClone2/src-i386' d:/Compiler/gcc-4.9.3/mingw_32/bin/g++ -I"D:/RCompile/recent/R-3.4.4/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c BayClone2.cpp -o BayClone2.o BayClone2.cpp: In function 'void fn_update_L_Z(int, int, int, int, double*, double*, double*, double*, double*, double*, double*, double*, double, double*, double*, double*)': BayClone2.cpp:1431:33: warning: variable 'z_sc_cur' set but not used [-Wunused-but-set-variable] int l_sc_cur, l_sc_new, z_sc_cur, z_sc_new; ^ BayClone2.cpp: In function 'double fn_eval_like(double*, double*, double*, double*, double*, double*, int, int)': BayClone2.cpp:1869:26: error: 'isnan' was not declared in this scope if (isnan(loglike)) loglike= R_NegInf; ^ BayClone2.cpp:1869:26: note: suggested alternative: In file included from D:/RCompile/recent/R-3.4.4/include/R.h:50:0, from BayClone2.cpp:24: D:/Compiler/gcc-4.9.3/mingw_32/i686-w64-mingw32/include/c++/cmath:837:5: note: 'std::isnan' isnan(_Tp __f) ^ make[1]: *** [BayClone2.o] Error 1 make[1]: Leaving directory `/cygdrive/d/temp/RtmpGI79n3/R.INSTALL336506d095a21/BayClone2/src-i386' Warning: running command 'make -f "D:/RCompile/recent/R-3.4.4/etc/i386/Makeconf" -f "D:/RCompile/recent/R-3.4.4/etc/i386/Makevars.site" -f "D:/RCompile/recent/R-3.4.4/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="BayClone2.dll" OBJECTS="BayClone2.o"' had status 2 ERROR: compilation failed for package 'BayClone2' * removing 'd:/Rcompile/CRANpkg/lib/3.4/BayClone2' * restoring previous 'd:/Rcompile/CRANpkg/lib/3.4/BayClone2' In R CMD INSTALL