This blog is moving to blog.r-enthusiasts.com. The new one is powered by wordpress and gets a subdomain of r-enthusiasts.com. See you there
Rcpp modules just got more flexible (as of revision 3838 of Rcpp, to become 0.9.16 in the future).
modules have allowed exposing C++ classes for some time now, but developpers had to declare custom wrap and as specializations if they wanted their classes to be used as return type or argument type of a C++ function or method....
So, let's crawl some data out of facebook using R. Don't get too excited though, this is just a weekend whatif project. Anyway, so for example, I want to download some photos where I'm tagged.
First, we need an access token from facebook. I don't know how to get this programmatically, so let's get one manually, log on to facebook...
Here comes yet another sequel of the code optimization problem from the R wiki, still using Rcpp, but with a different strategy this time Essentially, my previous version (15) was using stringstream although we don't really need its functionality ...
Tony Breyal woke up an old code optimization problem in this blog post, so I figured it was time for an Rcpp based solution
This solutions moves down Henrik Bengtsson's idea (which was at the basis of attempt 10) down to C++. The idea was to call sprintf less than the other solutions to generate the strings...