Skip to content

Commit ae56996

Browse files
authored
Merge pull request #480 from RcppCore/bugfix/restore_default_path
Provides armadillo header for direct include
2 parents d75bc58 + f7f90fa commit ae56996

File tree

3 files changed

+45
-2
lines changed

3 files changed

+45
-2
lines changed

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2025-09-02 Dirk Eddelbuettel <edd@debian.org>
2+
3+
* inst/include/armadillo: Moved back up from legacy/ to restore path
4+
* inst/include/armadillo_bits/: Idem
5+
6+
17
2025-09-01 Dirk Eddelbuettel <edd@debian.org>
28

39
* DESCRIPTION (Version, Date): RcppArmadillo 15.0.1-1

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: RcppArmadillo
22
Type: Package
33
Title: 'Rcpp' Integration for the 'Armadillo' Templated Linear Algebra Library
4-
Version: 15.0.1-1
5-
Date: 2025-09-01
4+
Version: 15.0.1-2
5+
Date: 2025-09-02
66
Authors@R: c(person("Dirk", "Eddelbuettel", role = c("aut", "cre"), email = "edd@debian.org",
77
comment = c(ORCID = "0000-0001-6419-907X")),
88
person("Romain", "Francois", role = "aut",

inst/include/armadillo

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
// Replacement header providing the original path so that '#include <armadillo>' works
3+
// with the R package -- but it is recommended to include only the RcppArmadillo header
4+
5+
6+
#ifndef RcppArmadillo__armadillo__h
7+
#define RcppArmadillo__armadillo__h
8+
9+
// See version/arma.h header for the (user and/or compilation) drive selection of these defines
10+
#if defined(ARMA_SELECTED_CURRENT_VERSION)
11+
12+
// we include Armadillo 15.0.1 here -- but do it quietly
13+
//#pragma message("Using compilation with current Armadillo version.")
14+
15+
// Armadillo 15.0.1 or later
16+
#include "current/armadillo"
17+
18+
#else
19+
20+
// we include Armadillo 14.6.3 here -- but do it quietly
21+
//#pragma message("Using fallback compilation with Armadillo 14.6.3.")
22+
23+
// Armadillo has deprecation warnings (which RcppArmadillo suppressed at time to
24+
// minimise issies at CRAN). Should your package display any, and you decide
25+
// _not_ to fix the root causes (see RcppArmadillo GitHub Issues #391 and #402
26+
// for details) then defining the following macro will help. You can add a
27+
// #define in your source code before including the RcppArmadillo header, or add
28+
// a -DARMA_IGNORE_DEPRECATED_MARKER to the PKG_CPPFLAGS in src/Makevars.
29+
//
30+
// Renabling globally again for Armadillo 14.6.* as too many packages trigger this
31+
#define ARMA_IGNORE_DEPRECATED_MARKER
32+
33+
#include "legacy/armadillo"
34+
35+
#endif
36+
37+
#endif

0 commit comments

Comments
 (0)