An open API service indexing awesome lists of open source software.

https://github.com/slowikj/whyr-rcpp-workshop

Rcpp workshop (WhyR? 2020 Conference)
https://github.com/slowikj/whyr-rcpp-workshop

r rcpp rcppparallel workshop

Last synced: 8 days ago
JSON representation

Rcpp workshop (WhyR? 2020 Conference)

Awesome Lists containing this project

README

        

# How to make your code fast - R and C++ integration using Rcpp

## Authors

Jadwiga Słowik, Dominik Rafacz, Laura Bąkała

## Description

Rcpp is an R package that facilitates performing more efficient computations by using C++ and provides wrappers for R internals such as vectors and lists. Due to the seamless C++ and R API integration, Rcpp gives the opportunity to export C++ code to R conveniently and, thus, to take advantage of the C++ high performance and idiomatic high-level R interface.

During the workshop, a participant will gain knowledge of C++ basics that is necessary for Rcpp, become familiar with the usage of Rcpp wrappers (for example IntegerVector, StringVector, NumericVector, List) and learn how to create Rcpp functions in order to invoke them from an R code. Finally, a few extensions are going to be showcased, such as RcppArmadillo, RcppParallel, RcppModules, which can make code even more efficient.

A participant of the workshop is required to have basic R programming skills such as: vectors manipulation, functions implementation, packages installation and familiarity with the RStudio environment. Some knowledge of C++ help, however, is not essential.
Requirements

Additionally, a working RStudio environment should be prepared before the workshop. In particular, the following packages will be needed: Rcpp, RcppArmadillo, RcppParallel.