Running examples in ‘iNextPD-Ex.R’ failed
The error most likely occurred in:

> ### Name: estimatePD
> ### Title: Compute phylogenetic diversity with a particular of sample
> ###   size/coverage
> ### Aliases: estimatePD
> 
> ### ** Examples
> 
> data(bird)
> bird.abu <- bird$abun
> bird.lab <- rownames(bird$abun)
> bird.phy <- ade4::newick2phylog(bird$tre)
> estimatePD(bird.abu, bird.lab, bird.phy, "abundance", base="size", level=NULL, conf=NULL)
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 90: Warning: enc hides Rcpp::String::enc.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 102: Warning: enc hides Rcpp::String::enc.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
Compilation aborted, too many Error messages.
make: Fatal error: Command failed for target `file3291281d7624.o'
Current working directory /tmp/Rtmp.Yaisz/sourceCpp-sparc-sun-solaris2.10-0.12.9/sourcecpp_32912cbc6333
CC -library=stlport4 -I/home/ripley/R/cc/include -DNDEBUG   -I"/home/ripley/R/Lib32/Rcpp/include" -I"/tmp/Rtmp.Yaisz/sourceCpp-sparc-sun-solaris2.10-0.12.9" -I/usr/local/include   -KPIC  -O -features=tmplrefstatic -features=extensions  -c file3291281d7624.cpp -o file3291281d7624.o
*** Error code 2
Error in sourceCpp(code = code, env = env, rebuild = rebuild, cacheDir = cacheDir,  : 
  Error 1 occurred building shared library.
Calls: estimatePD ... iNextPD.Ind -> PhD.m -> PhD.m.Rcpp -> <Anonymous> -> sourceCpp
Execution halted