Thanks JJ,
That worked perfectly.
On 2 June 2016 at 20:25, JJ Allaire wrote:
> If you create a file called pkgname_types.hpp and put it in your src
> directory it will be added to RcppExports.cpp ahead of RcppArmadillo.h.
> e.g. if your package is named foo then create:
>
> src/foo_types.hpp
>
If you create a file called pkgname_types.hpp and put it in your src
directory it will be added to RcppExports.cpp ahead of RcppArmadillo.h.
e.g. if your package is named foo then create:
src/foo_types.hpp
And put your #define macros there.
On Thu, Jun 2, 2016 at 3:32 AM, Scott Ritchie wrote:
Hi all,
I would like to set my own Armadillo #define macros (i.e. some of those
listed http://arma.sourceforge.net/docs.html#config_hpp) in an R package I
have developed.
The instructions there are to put their definitions before the include
statement to armadillo.h (or in this case RcppArmadillo