Posts Tagged ‘ developer tips ’

Browse the in-development R sources at GitHub

September 28, 2012
By

As an open-source project, the R source code has always been available to download from the R-project website. You can find source code for the latest released version here, and for the changing-daily new version in progress (R-devel) here. But if you don't have the R sources handy, and just want to check on the contents of a file...

Read more »

Benchmarking random-number generation from C++

August 22, 2012
By

If you're writing C++ code and want to generate random numbers, you might not be aware that R provides an API to call the R RNG functionality directly. The Rcpp package's "syntactic sugar" feature makes this process easier, by automating the process of translating a subset of ordinary R code into compiled C++ code. That means you can write...

Read more »

How R finds objects (or, what that :: operator is for)

April 4, 2012
By
How R finds objects (or, what that :: operator is for)

Most of the time when we're programming in R, we don't think about how R gets from an object name (say, "stdev") to what it represents (a function to calculate standard deviation, perhaps). If you're writing functions, you've probably know about R's lexical scoping. And if you use a lot of packages, you probably know about the search list,...

Read more »

Machine Learning for Hackers

February 16, 2012
By
Machine Learning for Hackers

"Machine Learning for Hackers" is a new book from O'Reilly Media by Drew Conway and John Myles White. A "hacker", here, is "someone who likes to solve problems and experiment with new technologies", and "Machine Learning" is usually thought of as a black-box, algorithmic approach to producing predictions or classifications from data. This book, however, takes a pleasingly statistical...

Read more »

RInside updated

January 18, 2012
By

The RInside package provides C++ classes that make it easier to embed R in C++ code on many platforms. According to a post from package co-maintainer Dirk Eddelbuettel, the package has just been updated to version 0.2.6 with improved support on Windows, and compatibility with R's standard random number generator. You can download the latest version from CRAN or...

Read more »

‘S Poetry’ and ‘The R Inferno’: Hardcopies on Sale

January 12, 2012
By

Patrick Burns' informative and entertaining books for R programmers, 'S Poetry' and 'The R Inferno', which have long been available as free downloads, are now available in an attractive hardcover format from Lulu Press and are on 25% sale through the end of January (use discount code LULUBOOKUK305). 'S Poetry', although written more than a dozen years ago for...

Read more »

How to program MapReduce jobs in Hadoop with R

September 13, 2011
By

MapReduce is a powerful programming framework for efficiently processing very large amounts of data stored in the Hadoop distributed filesystem. But while several programming frameworks for Hadoop exist, few are tuned to the needs of data analysts who typically work in the R environment as opposed to general-purpose languages like Java. That's why the dev team at Revolution Analytics...

Read more »

What language is R written in?

August 30, 2011
By
What language is R written in?

On of the nice things about R is that a lot if it is written in the R language. That means, as an R user, if you want to see how R calculates a certain statistic, or you want to modify an existing function for your own use, you can just look at the R code by typing the...

Read more »

Upcoming R training classes, live from the experts

August 5, 2011
By

Revolution Analytics is hosting several hands-on R training classes over the next few months, with in-person instruction from two leading package authors and experts from the R community. Diethelm Würtz from ETH Zurich will give a two-day master class on Portfolio Selection and Optimization in Practice. Prof Würtz leads the Rmetrics project, and will provide in-depth instruction on using...

Read more »

The R Journal: June 2011

June 24, 2011
By

The latest issue of the R Journal is out, and as always includes many useful articles about using R and R packages. Articles in Volume 3/1 dive into topics including creating test for R packages with test_that; dealing with times, time zones, dates and holidays with timeDate; social network analysis of mailing lists through text mining; creating choropleths and...

Read more »