Export headers in inst/include
Closed this issue · 2 comments
Hi all,
I am now working on a different package that in its c++ functions uses some c++ code from landscapemetrics (e.g. rcpp_get_coocurrence_matrix). Right now, for the development purposes, I just copied the .cpp files to the new package, but probably the better way is to expose the landscapemetrics cpp headers in inst/include.
What do you think about that?
Of course, there are two possibilities here:
- Just expose the landscapemetrics cpp headers in inst/include, or:
- Create a new package (landscapeengine) with cpp code and exposed headers.
Related to #109:
As discussed in #109, I will split the landscapemetrics package in the nearear future into landscapemetrics.engine (including all metrics and building blocks and thereby the Rcpp stuff) and landscapemetrics (including all sampling and visualization functions and importing lsm.engine).
The answers here can be useful for this case - https://twitter.com/jakub_nowosad/status/1140969799062888448.