Blog Archives

a:class <- b

July 28, 2014
By

Usually in strongly typed languages, like C++, the type of a variable comes before the variable, e.g.: int x = 23 ; So x is declared of type int and assignd the value 23. Now, some languages do things differently, e.g. in julia: x::Int8 = 10...

Read more »

A package about nothing

July 25, 2014
By
A package about nothing

nothing is a package about nothing. The idea is that when you do require(nothing) you express that you don't need anything, and therefore nothing assumes you are fine just using the base package, so it detaches all other packages. > loadedNamespaces() "base" "datasets" "devtools" "digest" ...

Read more »

Rcpp11 3.1.1

July 22, 2014
By

R 3.1.1 was released a few days ago, and as part of the policy we are trying to follow for Rcpp11 releases, here is Rcpp11 3.1.1. Sorry for the 12 days delay, but I was away in California, and Rcpp11 travelled with me, so I could not properly test the ...

Read more »

Rcpp11 t-shirt sightseeing

July 22, 2014
By
Rcpp11 t-shirt sightseeing

While we wait for CRAN to process the release of Rcpp11 3.1.1, here are some news about the Rcpp11 t-shirt. With more than 40 attendees, the Rcpp11 tutorial was a success. I managed to distribute almost all t-shirts I printed for the occasions. I onl...

Read more »

Can Rcpp fuse ?

July 8, 2014
By
Can Rcpp fuse ?

One of the features of Rcpp11 people seemed to like during useR is the fuse function. fuse is somewhat similar to the c function in R. For the purpose of this post, let's simplify what fuse does, and just say that it takes several compatible vector...

Read more »

R function call overhead in Rcpp(11)

June 24, 2014
By
R function call overhead in Rcpp(11)

Some people have asked for some facts about the differences between Rcpp11 and Rcpp, here is just one nugget. If you've been following the Rcpp world for some time, you might have seen comments like: Calling an R function from C++ is expensive. ...

Read more »

Rcpp11 conference marathon

June 19, 2014
By
Rcpp11 conference marathon

This is going to be a busy start of summer for me and Rcpp11. I will start by a talk at the 3rd rencontres R in Montpellier on June 26th. Then, over to Bressanone in the italian alps for DSC2014 where I'll give another talk on the next day (June 27th). Then,...

Read more »

Keep calm and #include <Rcpp11>

June 19, 2014
By

Following up on this post, I have just commited some code that makes the using namespace Rcpp11 ; automatic, I was just tired of typing it. So now, you can just do : #include <Rcpp11> If however, for some weird reason (some people love litter...

Read more »

sugar in parallel

June 18, 2014
By
sugar in parallel

I've been playing with parallelising Rcpp11 implementation of sugar. For example, we have a NumericVector variable x and we want to compute e.g. sqrt(exp(x)) + 2.0. With sugar, we can do: NumericVector y = sqrt(exp(x)) + 2.0 ; and this does not...

Read more »

useR!2014 Rcpp11 tutorial

June 17, 2014
By

We are getting close to useR!2014. I hope I'll see some of you at my tutorial about Rcpp11 in the morning. There are some other pretty useful tutorials as well, so no hard feeling if you don't come, but if you do want to know about modern R and C++, pl...

Read more »