Hi all, When I tried to install package randomForest, it gave out the following error message: " > install.packages("randomForest", dependencies = TRUE) trying URL 'http://www.lmbe.seu.edu.cn/CRAN/src/contrib/randomForest_4.5-12.tar.gz' Content type 'application/x-gzip' length 82217 bytes opened URL =================================================downloaded 80Kb Cannot create directory "": No such file or directory * Installing *source* package 'randomForest' ... ** libs gcc -I/user_data2/jfxiao/local/lib/R/include -I/usr/freeware/include -g -O2 -c classTree.c -o classTree.o gcc -I/user_data2/jfxiao/local/lib/R/include -I/usr/freeware/include -g -O2 -c regTree.c -o regTree.o gcc -I/user_data2/jfxiao/local/lib/R/include -I/usr/freeware/include -g -O2 -c regrf.c -o regrf.o gcc -I/user_data2/jfxiao/local/lib/R/include -I/usr/freeware/include -g -O2 -c rf.c -o rf.o f77 -OPT:IEEE_NaN_inf=ON -O2 -c rfsub.f -o rfsub.o "rfsub.f", line 90: error(2346): expression must have logical or integer type if (decsplit < 0.0) decsplit = 0.0 ^ "rfsub.f", line 90: error(2051): expected a ")" if (decsplit < 0.0) decsplit = 0.0 ^ 2 errors detected in the compilation of "rfsub.f". gmake: *** [rfsub.o] Error 2 ERROR: compilation failed for package 'randomForest' " Can somebody help me ? Thanks in advance. Xiao Jianfeng
Xiao Jianfeng wrote:> Hi all, > > When I tried to install package randomForest, it gave out the following > error message: > " > > install.packages("randomForest", dependencies = TRUE) > trying URL > 'http://www.lmbe.seu.edu.cn/CRAN/src/contrib/randomForest_4.5-12.tar.gz' > Content type 'application/x-gzip' length 82217 bytes > opened URL > =================================================> downloaded 80Kb > > Cannot create directory "": No such file or directory > * Installing *source* package 'randomForest' ... > ** libs > gcc -I/user_data2/jfxiao/local/lib/R/include > -I/usr/freeware/include -g -O2 -c classTree.c -o classTree.o > gcc -I/user_data2/jfxiao/local/lib/R/include > -I/usr/freeware/include -g -O2 -c regTree.c -o regTree.o > gcc -I/user_data2/jfxiao/local/lib/R/include > -I/usr/freeware/include -g -O2 -c regrf.c -o regrf.o > gcc -I/user_data2/jfxiao/local/lib/R/include > -I/usr/freeware/include -g -O2 -c rf.c -o rf.o > f77 -OPT:IEEE_NaN_inf=ON -O2 -c rfsub.f -o rfsub.o > "rfsub.f", line 90: error(2346): expression must have logical or integer > type > if (decsplit < 0.0) decsplit = 0.0 > ^ > > "rfsub.f", line 90: error(2051): expected a ")" > if (decsplit < 0.0) decsplit = 0.0 > ^ > > 2 errors detected in the compilation of "rfsub.f". > gmake: *** [rfsub.o] Error 2 > ERROR: compilation failed for package 'randomForest' > " > Can somebody help me ?Which OS/platform and compiler are we talking about? Uwe Ligges> Thanks in advance. > > Xiao Jianfeng > > > ------------------------------------------------------------------------ > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
> From: Prof Brian Ripley > > On Mon, 8 Aug 2005, Uwe Ligges wrote: > > > Xiao Jianfeng wrote: > > > >> Hi all, > >> > >> When I tried to install package randomForest, it gave out > the following > >> error message: > >> " > >> > install.packages("randomForest", dependencies = TRUE) > >> trying URL > >> > 'http://www.lmbe.seu.edu.cn/CRAN/src/contrib/randomForest_4.5- > 12.tar.gz' > >> Content type 'application/x-gzip' length 82217 bytes > >> opened URL > >> =================================================> >> downloaded 80Kb > >> > >> Cannot create directory "": No such file or directory > > I have no idea what that is about. > > >> * Installing *source* package 'randomForest' ... > >> ** libs > >> gcc -I/user_data2/jfxiao/local/lib/R/include > >> -I/usr/freeware/include -g -O2 -c classTree.c -o classTree.o > >> gcc -I/user_data2/jfxiao/local/lib/R/include > >> -I/usr/freeware/include -g -O2 -c regTree.c -o regTree.o > >> gcc -I/user_data2/jfxiao/local/lib/R/include > >> -I/usr/freeware/include -g -O2 -c regrf.c -o regrf.o > >> gcc -I/user_data2/jfxiao/local/lib/R/include > >> -I/usr/freeware/include -g -O2 -c rf.c -o rf.o > >> f77 -OPT:IEEE_NaN_inf=ON -O2 -c rfsub.f -o rfsub.o > >> "rfsub.f", line 90: error(2346): expression must have > logical or integer > >> type > >> if (decsplit < 0.0) decsplit = 0.0 > >> ^ > >> > >> "rfsub.f", line 90: error(2051): expected a ")" > >> if (decsplit < 0.0) decsplit = 0.0 > >> ^ > >> > >> 2 errors detected in the compilation of "rfsub.f". > >> gmake: *** [rfsub.o] Error 2 > >> ERROR: compilation failed for package 'randomForest' > >> " > >> Can somebody help me ? > > > > > > Which OS/platform and compiler are we talking about? > > >From his multitudinous recent postings, a peculiar IRIX setup. > > However, that line is not valid Fortran: replace < by .LT. > Please note the posting guide asks you to discuss problems in > packages > with the maintainer (and to state your platform and R version).Thanks for catching that! It must have slipped when I was going back and forth between C and Fortran... Update should appear on CRAN this week, I hope. Best, Andy> > -- > Brian D. Ripley, ripley at stats.ox.ac.uk > Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ > University of Oxford, Tel: +44 1865 272861 (self) > 1 South Parks Road, +44 1865 272866 (PA) > Oxford OX1 3TG, UK Fax: +44 1865 272595 > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > > >