R and ArrayFire library via Rcpp. You can build the ArrayFire library from source or use the binary installer. See the ArrayFire documentation for details. RcppArrayFire is developed on Linux and has been tested on Linux and MacOS.


RcppArrayFire is not on CRAN, but you can install the current version via drat:

if (!requireNamespace("drat", quietly = TRUE)) install.packages("drat")

RcppArrayFire uses the unified backend of ArrayFire. If you have installed ArrayFire in a non-standard directory, you can use the configure argument --with-arrayfire:

install.packages("RcppArrayFire", configure.args = "--with-arrayfire=/opt/arrayfire")

Trademark notice

RcppArrayFire is not affiliated with or endorsed by ArrayFire. The ArrayFire literal mark is used under a limited license granted by ArrayFire the trademark holder in the United States and other countries.


RcppArrayFire is based on RcppFire and is under development.


Kazuki Fukui and Ralf Stubner


GPL (>= 2)