Compile and install R, based on ruby-build