# Rcpp 0.8.6

September 10, 2010
By

(This article was first published on dirk.eddelbuettel, and kindly contributed to R-bloggers)

After a somewhat longer than usual break, we now have a new release of Rcpp on CRAN and in Debian.

This release adds quite few things. The main one may be the addition of density, distribution, quantile and random number functions for a rather large number of statistical distribution. Usage is pretty much as it would be in R, yet it is vectorised at the C++ level. A fair number of unit tests were added too, but some work is left to do there too.
Support for complex number was enhanced both in the expressive 'sugar' context and via a few binary operators that had been missing. We also started a new vignette to provide a 'quick reference'; unfortunately this is not quite complete yet.

The NEWS entry follows below:

0.8.6 2010-09-09 o	new macro RCPP_VERSION and Rcpp_Version to allow conditional compiling based on the version of Rcpp #if defined(RCPP_VERSION) && RCPP_VERSION >= Rcpp_Version(0,8,6) ... #endif o new sugar functions for statistical distributions (d-p-q-r functions) with distributions : unif, norm, gamma, chisq, lnorm, weibull, logis, f, pois, binom, t, beta. o new ctor for Vector taking size and function pointer so that for example NumericVector( 10, norm_rand ) generates a N(0,1) vector of size 10 o added binary operators for complex numbers, as well as sugar support o more sugar math functions: sqrt, log, log10, exp, sin, cos, ... o	started new vignette Rcpp-quickref : quick reference guide of Rcpp API (still work in progress) o	various patches to comply with solaris/suncc stricter standards o	minor enhancements to ConvolutionBenchmark example o	simplified src/Makefile to no longer require GNU make; packages using Rcpp still do for the compile-time test of library locations

As always, even fuller details are in Rcpp Changelog page and the Rcpp page which also leads to the downloads, the browseable doxygen docs and zip files of doxygen output for the standard formats. A local directory has source and documentation too. Questions, comments etc should go to the rcpp-devel mailing list off the R-Forge page