armadillo4r: An 'Armadillo' Interface

Provides function declarations and inline function definitions that facilitate communication between R and the 'Armadillo' 'C++' library for linear algebra and scientific computing. This implementation is derived from Vargas Sepulveda and Schneider Malamud (2024) <doi:10.1016/j.softx.2025.102087>. The shipped version of the 'Armadillo' library is version 15.4.2 "Medium Roast Agave".

Version: 15.4.2
Depends: R (≥ 4.0.0)
Imports: cpp4r
Suggests: Matrix, tinyroxygen, tinytest, litedown, rbibutils
Published: 2026-08-23
DOI: 10.32614/CRAN.package.armadillo4r
Author: Mauricio Vargas Sepulveda ORCID iD [aut, cre], Jonathan Schneider Malamud [ctb], Conrad Sanderson [aut] (Armadillo library (C++))
Maintainer: Mauricio Vargas Sepulveda <m.vargas.sepulveda at gmail.com>
BugReports: https://github.com/pachadotdev/armadillo4r/issues
License: Apache License 2.0
URL: https://pacha.dev/armadillo4r/, https://github.com/pachadotdev/armadillo4r
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: armadillo4r results

Documentation:

Reference manual: armadillo4r.html , armadillo4r.pdf
Vignettes: 01 - Basic 'armadillo4r' usage (source)
02 - Armadillo configuration (source)
03 - Converting between R and Armadillo types (source, R code)
04 - Syntax comparison for MATLAB/Octave users (source)
05 - Sparse matrices (source)
06 - Matrix, vector, cube and field classes (source)
07 - Member functions and variables (source)
08 - Functions of vectors, matrices, and cubes (source)
09 - Generated vectors, matrices, and cubes (source)
10 - Decompositions, factorisations, inverses and equation solvers (dense matrices) (source)
11 - Decompositions, factorisations, inverses and equation solvers (sparse matrices) (source)
12 - Statistics and clustering (source)
13 - Signal and image processing (source)
14 - Saving and loading Armadillo objects on C++ side (source)
15 - Using SEXP with Armadillo data types (source)
16 - Fitting regressions with Armadillo (source, R code)
17 - Miscellaneous (source)

Downloads:

Package source: armadillo4r_15.4.2.tar.gz
Windows binaries: r-devel: armadillo4r_1.0.0.zip, r-release: armadillo4r_1.0.0.zip, r-oldrel: armadillo4r_15.4.2.zip
macOS binaries: r-release (arm64): armadillo4r_15.4.2.tgz, r-oldrel (arm64): armadillo4r_15.4.2.tgz, r-release (x86_64): armadillo4r_15.4.2.tgz, r-oldrel (x86_64): armadillo4r_15.4.2.tgz
Old sources: armadillo4r archive

Reverse dependencies:

Reverse linking to: capybara, economiccomplexity, leontief, lotri

Linking:

Please use the canonical form https://CRAN.R-project.org/package=armadillo4r to link to this page.