Chapter 9 | Parallel computation

The R community has developed several packages to take advantage of parallelism. Many of these packages are simply wrappers around one or multiple other parallelism packages forming a complex and sometimes confusing web of packages. Package parallel attempts to...

Chapter 8 | Debugging and Profiling

Debugging Debugging is typically what programmers do about 90% of the time. This is a sad but not unrealistic fact of life. Given that fact, the creators of R have generously provided useful debugging tools to make programmers’ lives a little easier. The debugging...

Chapter 7 | Object Oriented

Object Oriented Programming Object oriented programming is a programming paradigm based on classes and methods. A class is an abstract definition of a concrete real world object. A class is generally made of ordered and named slots. For instance, a rectangle is...

Chapter 6 | Creating R packages

Introduction A wide documentation is available on the internet providing the technical instructions to build R packages, starting from the manual Writing R extensions at the official R site. This section provides a general overview about R packages. The following...

Chapter 5 | Functional Programming

R as a functional programming language R can be considered as a functional programming language as it focusses on the creation and manipulation of functions and has what’s known as first class functions. In computer science, functional programming is a programming...