Dirk Eddelbuettel: Rcpp 0.10.0
Rcpp release 0.10.0
is now on CRAN and being uploaded to Debian.
This is a new feature release, and we are very exciting about the
changes, notably Rcpp attributes which make using C++ from R even
easier than inline (see below as well as the
new
vignette for details and first examples), the extensions to Rcpp
modules (see below) and more as for example new Rcpp sugar
functions, a new error output device syncing to R, and a new namespace R>
for the statistical functions from Rmath.h.
The complete NEWS
entry for 0.10.0 is below; more details are in the ChangeLog file in the package and on the
Rcpp Changelog page.
Changes in Rcpp version 0.10.0 (2012-11-13)Thanks to CRANberries, you can also look at a diff to the previous release 0.9.15. As always, even fuller details are on the 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
- Support for C++11 style attributes (embedded in comments) to enable use of C++ within interactive sessions and to automatically generate module declarations for packages:
- Rcpp::export attribute to export a C++ function to R
sourceCpp()function to source exported functions from a filecppFunction()andevalCpp()functions for inline declarations and executioncompileAttribtes()function to generate Rcpp modules from exported functions within a package- Rcpp::depends attribute for specifying additional build dependencies for
sourceCpp()- Rcpp::interfaces attribute to specify the external bindings
compileAttributes()should generate (defaults to R-only but a C++ include file using R_GetCCallable can also be generated)- New vignette "Rcpp-attribute"
- Rcpp modules feature set has been expanded:
- Functions and methods can now return objects from classes that are exposed through modules. This uses the make_new_object template internally. This feature requires that some class traits are declared to indicate Rcpp's
wrap/assystem that these classes are covered by modules. The macro RCPP_EXPOSED_CLASS and RCPP_EXPOSED_CLASS_NODECL can be used to declared these type traits.- Classes exposed through modules can also be used as parameters of exposed functions or methods.
- Exposed classes can declare factories with ".factory". A factory is a c++ function that returns a pointer to the target class. It is assumed that these objects are allocated with new on the factory. On the R side, factories are called just like other constructors, with the "new" function. This feature allows an alternative way to construct objects.
- "converter" can be used to declare a way to convert an object of a type to another type. This gets translated to the appropriate "as" method on the R side.
- Inheritance. A class can now declare that it inherits from another class with the .derives<Parent>( "Parent" ) notation. As a result the exposed class gains methods and properties (fields) from its parent class.
- New sugar functions:
which_minimplements which.min. Traversing the sugar expression and returning the index of the first time the minimum value is found.which_maxidemuniqueuses unordered_set to find unique values. In particular, the version for CharacterVector is found to be more efficient than R's versionsort_uniquecalculates unique values and then sorts them.- Improvements to output facilities:
- Implemented
sync()so that flushing output streams works- Added
Rcerroutput stream (forwarding toREprintf)- Provide a namespace 'R' for the standalone Rmath library so that Rcpp users can access those functions too; also added unit tests
- Development releases sets variable RunAllRcppTests to yes to run all tests (unless it was alredy set to 'no'); CRAN releases do not and still require setting which helps with the desired CRAN default of less testing at the CRAN server farm.
Update: One link corrected.
Dear lazyweb, we need a new printer-scanner combination for our
new office, ideally a laser printer and a high-resolution scanner
(1200dpi). It must integrate nicely with CUPS and SANE,
without requiring any proprietary, closed-licence drivers
or plugins. It also has to come with an automatic document feeder
in addition to the plain flatbed scanner.
Additional, would-be-nice features in decreasing order of
preference are
Tomorrow (Thursday 15th November), there will be a PGP key signing and
I do like the way programmers think in terms of DRY, for instance, among other forms of optimization. A couple of days ago I wanted to test different implementations of the same algorithm in C++.
The usual approach would be to implement those algorithms, call them in
Ever since I passed the age of 18, I've used my legal right in the
UK to vote in every poll I could: local council, British Parliament,
European Parliament and even the messed-up referendum on the
Alternative Vote that we had last year. In each of those cases, I made
a point of considering my available options and I voted accordingly. I
went along and marked my ballot paper in person where possible, or I
filled in a postal vote for the last Westminster election in 2010 as I
was on vacation in Florida when it was held.
Unfortunately, it seems that my diligence in voting makes me
unusual amongst the UK population these days. The long-term trend for
voter turnout is downwards (as you
can
It s quite funny than the only service that is fully accessible (at least that s my impression) through IPv6 is IRC which is usually considered as something deprecated/obsolete.
For the last couple of years, one of the topics I have tackled with several columns and a couple of articles published, several presentations on conferences and many comments wherever I can is raising awareness on why security experts around the world oppose electronic voting.
Slightly over a year ago, I started gathering all the published news (in Spanish, with some notes in English if I feel them relevant enough) that came to my greedy hands and archiving them, categorized as well as I could, into what I came to call an
again, not one of my best
Today, I officially got approved by the Debian Account Managers as a Debian Developer (still waiting on keyring-maint and DSA). Over the years, I have seen many people complain about the New Member Process. The most common complaint was with regards to the (usually) long amount of time the process can take to complete. I am writing this blog post to provide one more perspective on this process. Hopefully, it will prove useful to people considering starting the New Member Process.
The most difficult part about the New Member Process for me had to do with getting my GPG key signed by Debian Developers. I have not been able to attend any large conferences, which are great places to get your key signed. I also have not been able to meet up with the few Debian Developers living in/around Chicago. As a result, I was forced to patiently wait to start the NM process. This waiting period lasted a couple of years. It wasn't until this October, at the [Association for Computing Machinery at Urbana-Champaign's Reflections Projections Conference], that this changed.
I'm going to spare everyone all the gory details at this time, but I guess
it's time to acknowledge the facts. Sarah has left me.
This has all come to a head extremely quickly (for me), but Sarah has been
sitting on a horrible pile of emotions for months, so it's probably been an
eternity for her.
I still love Sarah and I'm desperately trying to reconcile, but Sarah just
wants to move on. Throw a child in the mix and the fact that we're married in
Australia but most of our on-paper shared property is in California, and I just
don't want to think about it.
I ask that our mutual friends not take sides (which I realise is difficult) and
to please give Sarah all the support you can. This can't have been an easy
decision for her. Of course, I'll also take any support you want to send my
way.
I start my sabbatical from work on Thursday (I don't return to work until
January), and my parents have a prearranged visit for pretty much all of
December. I had all this planned before this came out of left field. I'd
debated telling my parents not to come, so I could use the time off work to try
and repair things, but Zoe needs time with her grandparents, and I can probably
do with having them around.
OK I became again lazy to log my works and combined 2 weeks again :-).
Most of my work is for Debian for this 2 weeks.