[Rcpp-devel] Linking code in src/ subfolders
Dirk Eddelbuettel
edd at debian.org
Wed Mar 11 01:14:18 CET 2015
On 10 March 2015 at 19:06, JJ Allaire wrote:
| Right now compileAttributes doesn't scan code in subdirectories. This
| is mostly because for it to be really seamless compileAttributes
| should run before every build. We therefore want to keep the total
| execution time <= 50ms.
|
| Since some R packages have *a lot* of code in subdirectories of src we
| didn't want to get into scanning recursively before every build.
And the simple solution is that if you do have a lot of code in such
subdirectories, maybe you should consider writing _explicit_ interfaces
rather than relying on compileAttributes()
Or, conversely, write accessors in the top-level directory and
compileAttributes() will take care of you.
Dirk
--
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
More information about the Rcpp-devel
mailing list