Week 11: Rewriting R code in C++

Guest Lecturer: Tomasz Wozniak

Main reference

What you will learn this week

  • C++ for applications in R with Tomasz Woźniak
  • The first steps with Rcpp
  • Some stats with RcppArmadillo
  • Hands-on coding with four exercises
  • An R package with compiled code

Preparation to the session

You must have a cpp compiler installed on your computer. Follow the instructions from Section 1.3. by Eddelbuettel & François (2023). In short:

Other references used during the session

Scripts used during the session

Slides for week

Download pdf

Assignments