<div dir="ltr">Thanks Kevin. Indeed, something along those lines should be the way to go, though I wouldn't really know how to adapt the example to load a Rdata file, export a text file, move it to src/ and clean up. <div>Fortunately, after having a closer look at this header file, it looks like I'm not currently using it (the Clenshaw-Curtis quadrature is an alternative option provided by S. Johnson's cubature library, but I'm actually using the other routine). So I can get rid of it altogether for now, and my package falls below 1Mb.<div><br></div><div>Thanks for the tip anyway,</div><div><br></div><div>baptiste</div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 29 February 2016 at 08:59, Kevin Ushey <span dir="ltr"><<a href="mailto:kevinushey@gmail.com" target="_blank">kevinushey@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What about having a 'configure' script that generates this header file<br>
on package install?<br>
<a href="https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Configure-and-cleanup" rel="noreferrer" target="_blank">https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Configure-and-cleanup</a><br>
<div><div class="h5"><br>
On Sun, Feb 28, 2016 at 11:18 AM, Baptiste Auguie<br>
<<a href="mailto:baptiste.auguie@gmail.com">baptiste.auguie@gmail.com</a>> wrote:<br>
> Dear Rcpp gurus,<br>
><br>
> In the process of updating my planar package<br>
> <<a href="https://github.com/baptiste/planar" rel="noreferrer" target="_blank">https://github.com/baptiste/planar</a>>, CRAN has mentioned their concern with<br>
> the size of the source package (20Mb compressed tar.gz). This puzzled me<br>
> until I found the culprit: a 40Mb header file<br>
> <<a href="https://github.com/baptiste/planar/blob/master/src/clencurt.h" rel="noreferrer" target="_blank">https://github.com/baptiste/planar/blob/master/src/clencurt.h</a>> with 500k<br>
> pre-calculated quadrature points.<br>
> I'm thinking that the easiest strategy is probably to compress these data<br>
> into binary form, say as a Rdata file in inst/, and have the Makefile do<br>
> some magic to recover it during the package compilation. I'm not sure how to<br>
> achieve this, or if it even makes sense. Any example of a similar procedure<br>
> I could follow?<br>
><br>
> Thanks,<br>
><br>
> baptiste<br>
><br>
</div></div>> _______________________________________________<br>
> Rcpp-devel mailing list<br>
> <a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a><br>
> <a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" rel="noreferrer" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br>
</blockquote></div><br></div>