[R-pkg-devel] No prebuilt vignette index

2019-12-11 Thread Charith Karunarathna
Hi Everyone, I wonder how to address the following NOTE that I am getting from the win-builder check. " * checking CRAN incoming feasibility ... NOTE Maintainer: 'Charith Karunarathna ' Package has a VignetteBuilder field but no prebuilt vignette index. " I am including a static PDF vigne

Re: [R-pkg-devel] reduce size of shared objects

2019-12-11 Thread Iñaki Ucar
On Wed, 11 Dec 2019 at 15:01, Guido Kraemer wrote: > > I have tried the suggestion from the blog post and added > > |strippedLib: $(SHLIB) if test -e "/usr/bin/strip" & test -e > "/bin/uname" & [[ `uname` == "Linux" ]] ; \ then /usr/bin/strip > --strip-debug $(SHLIB); fi .phony: strippedLib| > ||

Re: [R-pkg-devel] reduce size of shared objects

2019-12-11 Thread Guido Kraemer
I have tried the suggestion from the blog post and added |strippedLib: $(SHLIB) if test -e "/usr/bin/strip" & test -e "/bin/uname" & [[ `uname` == "Linux" ]] ; \ then /usr/bin/strip --strip-debug $(SHLIB); fi .phony: strippedLib| || || |to `src/Makevars` and it works great, it gets the size of

Re: [R-pkg-devel] reduce size of shared objects

2019-12-11 Thread Guido Kraemer
Thanks, I wasn't aware about these blog posts. I have just read a little bit of gcc documentation and the `-flto` flag has to be provided also in the compile steps, doing this PKG_CPPFLAGS=-I"../inst/include" -flto PKG_LIBS=-lstdc++fs -flto reduces the size of the final `.so` to under 1Mb, but

Re: [R-pkg-devel] reduce size of shared objects

2019-12-11 Thread Dirk Eddelbuettel
On 11 December 2019 at 14:07, Guido Kraemer wrote: | I am building an R package (https://github.com/gdkrmr/zarr-R) that wraps | a couple of C++ headers and the resulting shared object is huge (>20Mb, | see https://travis-ci.org/gdkrmr/zarr-R). I have tried to set the | following in `./src/Make

Re: [R-pkg-devel] reduce size of shared objects

2019-12-11 Thread Iñaki Ucar
On Wed, 11 Dec 2019 at 14:07, Guido Kraemer wrote: > > I am building an R package (https://github.com/gdkrmr/zarr-R) that wraps > a couple of C++ headers and the resulting shared object is huge (>20Mb, > see https://travis-ci.org/gdkrmr/zarr-R). I have tried to set the > following in `./src/Makeva

[R-pkg-devel] reduce size of shared objects

2019-12-11 Thread Guido Kraemer
I am building an R package (https://github.com/gdkrmr/zarr-R) that wraps a couple of C++ headers and the resulting shared object is huge (>20Mb, see https://travis-ci.org/gdkrmr/zarr-R). I have tried to set the following in `./src/Makevars`: PKG_CPPFLAGS=-I"../inst/include" -ffunction-sections

[R-pkg-devel] r2sundials submission failure

2019-12-11 Thread Serguei Sokol
Hi, I have tried to submit my new package https://github.com/sgsokol/r2sundials to CRAN but submission seems to be dismissed. The package needs a third part software https://computing.llnl.gov/projects/sundials/cvodes so it cannot be built on CRAN automatically. I explained this (and how the