Skip to content

slowikj/whyr-rcpp-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Rcpp workshop (WhyR? 2020 Conference)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages