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>.
README
# How to use armadillo4r?
## Read the documentation
The [package website](https://pacha.dev/armadillo4r/) covers the basics,
setup customization, and advanced use cases.
## Test the package
1. Open `./dev/01_load_or_install.R` and run it.
2. Open `./src/01_ols.cpp`, inspect the OLS functions.
3. Create your own functions in `./02_your_functions.cpp`.
4. Run `devtools::load_all()` before testing your functions, and then add tests
to `./dev/02_test.R` and run it.
5. Run `./dev/03_readme_and_license.R` to add a README and license.
6. Run `devtools::install()` in `./dev/01_load_or_install.R` to install the
package locally when you are ready.
7. The package template includes a configuration with a predefined number of
cores to use. You can change this value by doing this:
Unix: Edit `./src/Makevars.in` to set `DARMA_OPENMP_THREADS` to another
value or edit `./configure` to change `PKG_NCORES` to another value.
Windows: Edit `./src/Makevars.win` to set `DARMA_OPENMP_THREADS` to another
value.
Versions across snapshots
| Version | Repository | File | Size |
|---|---|---|---|
0.8.0 |
2026-04-09 windows/windows R-4.5 | armadillo4r_0.8.0.zip |
1.1 MiB |