Pablo Casas has published a book freely available online, Data Science Live Book. To quote from the book,

It is a book about data preparation, data analysis and machine learning.

The book is open source, and the code examples are written in R.