The FAQ asks you to send bug reports on contributed packages to their
manitainer. This is NOT a bug in R.
gbm is a contributed package, and 2.0.1 is not the current release of R.
I can confirm it with 2.1.0 on Solaris.
On Mon, 25 Apr 2005 manager@molbiol.ox.ac.uk wrote:
> Full_Name: The Manager
> Version: 2.0.1
> OS: Solaris 9
> Submission from: (NULL) (129.67.80.243)
>
>
>> install.packages("gbm")
> trying URL `http://cran.uk.r-project.org/src/contrib/PACKAGES'
> Content type `text/plain; charset=ISO-8859-1' length 52975 bytes
> opened URL
> =================================================> downloaded 51Kb
>
> trying URL `http://cran.uk.r-project.org/src/contrib/gbm_1.4-2.tar.gz'
> Content type `application/x-gzip' length 252551 bytes
> opened URL
> =================================================> downloaded 246Kb
> * Installing *source* package 'gbm' ...
> ** libs
> g++ -I/package/R/2.0.1-32bit/lib/R/include -I/usr/local/include -fPIC
-O2 -c
> adaboost.cpp -oadaboost.o
> g++ -I/package/R/2.0.1-32bit/lib/R/include -I/usr/local/include -fPIC
-O2 -c
> bernoulli.cpp -o bernoulli.o
> g++ -I/package/R/2.0.1-32bit/lib/R/include -I/usr/local/include -fPIC
-O2 -c
> coxph.cpp -o coxph.o
> g++ -I/package/R/2.0.1-32bit/lib/R/include -I/usr/local/include -fPIC
-O2 -c
> dataset.cpp -o dataset.o
> g++ -I/package/R/2.0.1-32bit/lib/R/include -I/usr/local/include -fPIC
-O2 -c
> distribution.cpp -o distribution.o
> g++ -I/package/R/2.0.1-32bit/lib/R/include -I/usr/local/include -fPIC
-O2 -c
> gaussian.cpp -ogaussian.o
> g++ -I/package/R/2.0.1-32bit/lib/R/include -I/usr/local/include -fPIC
-O2 -c
> gbm.cpp -o gbm.o
> g++ -I/package/R/2.0.1-32bit/lib/R/include -I/usr/local/include -fPIC
-O2 -c
> gbm_engine.cpp -o gbm_engine.o
> g++ -I/package/R/2.0.1-32bit/lib/R/include -I/usr/local/include -fPIC
-O2 -c
> gbmentry.cpp -ogbmentry.o
> gbmentry.cpp: In function `SEXPREC* gbm_shrink_pred(SEXPREC*, SEXPREC*,
> SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*,
> SEXPREC*)':
> gbmentry.cpp:677: error: `NAN' undeclared (first use this function)
> gbmentry.cpp:677: error: (Each undeclared identifier is reported only once
for
> each function it appears in.)
> make: *** [gbmentry.o] Error 1
> ERROR: compilation failed for package 'gbm'
> ** Removing '/package/R/2.0.1-32bit/lib/R/library/gbm'
> ** Restoring previous '/package/R/2.0.1-32bit/lib/R/library/gbm'
>
> Delete downloaded files (y/N)? y
>
> Warning message:
> Installation of package gbm had non-zero exit status in:
> install.packages("gbm")
>> q()
--
Brian D. Ripley, ripley@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