* using log directory 'd:/Rcompile/CRANpkg/local/3.5/glmnet.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 'glmnet/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'glmnet' version '3.0' * 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 'glmnet' can be installed ... ERROR Installation failed. See 'd:/Rcompile/CRANpkg/local/3.5/glmnet.Rcheck/00install.out' for details. * DONE The installation logfile: * installing *source* package 'glmnet' ... ** package 'glmnet' successfully unpacked and MD5 sums checked ** libs *** arch - i386 make[1]: Entering directory `/cygdrive/d/temp/Rtmpy4yAgn/R.INSTALL5781c38168c/glmnet/src-i386' d:/Compiler/gcc-4.9.3/mingw_32/bin/gfortran -O3 -mtune=core2 -c glmnet5dpclean.f -o glmnet5dpclean.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.5.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c glmnet_init.c -o glmnet_init.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.5.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c pb.c -o pb.o pb.c: In function 'setpb_': pb.c:21:3: warning: implicit declaration of function 'R_GetCurrentEnv' [-Wimplicit-function-declaration] eval(s, R_GetCurrentEnv()); ^ pb.c:21:11: warning: passing argument 2 of 'Rf_eval' makes pointer from integer without a cast eval(s, R_GetCurrentEnv()); ^ In file included from pb.c:1:0: D:/RCompile/recent/R-3.5.3/include/Rinternals.h:955:6: note: expected 'SEXP' but argument is of type 'int' SEXP Rf_eval(SEXP, SEXP); ^ d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -shared -s -static-libgcc -o glmnet.dll tmp.def glmnet5dpclean.o glmnet_init.o pb.o -Ld:/Compiler/gcc-4.9.3/local330/lib/i386 -Ld:/Compiler/gcc-4.9.3/local330/lib -lgfortran -lm -lquadmath -LD:/RCompile/recent/R-3.5.3/bin/i386 -lR pb.o:pb.c:(.text+0xc4): undefined reference to `R_GetCurrentEnv' collect2.exe: error: ld returned 1 exit status make[1]: Leaving directory `/cygdrive/d/temp/Rtmpy4yAgn/R.INSTALL5781c38168c/glmnet/src-i386' make[1]: Entering directory `/cygdrive/d/temp/Rtmpy4yAgn/R.INSTALL5781c38168c/glmnet/src-i386' make[1]: Leaving directory `/cygdrive/d/temp/Rtmpy4yAgn/R.INSTALL5781c38168c/glmnet/src-i386' no DLL was created ERROR: compilation failed for package 'glmnet' * removing 'd:/Rcompile/CRANpkg/lib/3.5/glmnet' * restoring previous 'd:/Rcompile/CRANpkg/lib/3.5/glmnet' In R CMD INSTALL