* using log directory 'd:/Rcompile/CRANpkg/local/3.3/treethresh.Rcheck' * using R version 3.3.3 (2017-03-06) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'treethresh/DESCRIPTION' ... OK * this is package 'treethresh' version '0.1-11' * 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 'treethresh' can be installed ... ERROR Installation failed. See 'd:/Rcompile/CRANpkg/local/3.3/treethresh.Rcheck/00install.out' for details. * DONE The installation logfile: * installing *source* package 'treethresh' ... ** package 'treethresh' successfully unpacked and MD5 sums checked ** libs *** arch - i386 make[1]: Entering directory `/cygdrive/d/temp/RtmpQLnqTp/R.INSTALL2c9043347428d/treethresh/src-i386' d:/Compiler/gcc-4.9.3/mingw_32/bin/g++ -I"D:/RCompile/recent/R-3.3.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c blockthresh.cc -o blockthresh.o d:/Compiler/gcc-4.9.3/mingw_32/bin/g++ -I"D:/RCompile/recent/R-3.3.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c treethresh.cc -o treethresh.o treethresh.cc:9:8: error: 'R_NativePrimitiveArgType' does not name a type static R_NativePrimitiveArgType C_prune_tree_types[] = { ^ treethresh.cc:13:8: error: 'R_NativePrimitiveArgType' does not name a type static R_NativePrimitiveArgType C_update_membership_types[] = { ^ treethresh.cc:26:14: error: 'R_CMethodDef' does not name a type static const R_CMethodDef cMethods[] = { ^ treethresh.cc:33:14: error: 'R_ExternalMethodDef' does not name a type static const R_ExternalMethodDef externalMethods[] = { ^ treethresh.cc:41:44: error: variable or field 'R_init_treethresh' declared void void attribute_visible R_init_treethresh(DllInfo *info) { ^ treethresh.cc:41:44: error: 'DllInfo' was not declared in this scope treethresh.cc:41:53: error: 'info' was not declared in this scope void attribute_visible R_init_treethresh(DllInfo *info) { ^ make[1]: *** [treethresh.o] Error 1 make[1]: Leaving directory `/cygdrive/d/temp/RtmpQLnqTp/R.INSTALL2c9043347428d/treethresh/src-i386' Warning: running command 'make -f "Makevars" -f "D:/RCompile/recent/R-3.3.3/etc/i386/Makeconf" -f "D:/RCompile/recent/R-3.3.3/etc/i386/Makevars.site" -f "D:/RCompile/recent/R-3.3.3/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="treethresh.dll" OBJECTS="blockthresh.o treethresh.o utils.o"' had status 2 ERROR: compilation failed for package 'treethresh' * removing 'd:/Rcompile/CRANpkg/lib/3.3/treethresh' * restoring previous 'd:/Rcompile/CRANpkg/lib/3.3/treethresh'