Re: [R-pkg-devel] compilation flags WARNING

2018-07-05 Thread Dirk Eddelbuettel
On 5 July 2018 at 22:19, Göran Broström wrote: | Thanks Heather and Iñaki: I understand. | | I have an old Makevars file in the src directory of the package. I | guess I can set the flags there? No, because those get scanned by R CMD check and friends. For the one you do not want, Heather's

Re: [R-pkg-devel] compilation flags WARNING

2018-07-05 Thread Heather Turner
I would suggest not to set the CFLAGS in the package itself - at least not exclusively. R-admin 6.3.3 (the section I linked before) recommends "to enable a reasonable amount of diagnostic messaging (“warnings”) when compiling, such as e.g. -Wall -pedantic for tools from GCC", while R-exts

Re: [R-pkg-devel] compilation flags WARNING

2018-07-05 Thread Iñaki Úcar
El jue., 5 jul. 2018 a las 22:23, Göran Broström () escribió: > > Thanks Heather and Iñaki: I understand. > > I have an old Makevars file in the src directory of the package. I > guess I can set the flags there? Now it only contains > > # PKG_CFLAGS = -Wall > # PKG_FFLAGS = -Wall -fbounds-check >

Re: [R-pkg-devel] compilation flags WARNING

2018-07-05 Thread Göran Broström
Thanks Heather and Iñaki: I understand. I have an old Makevars file in the src directory of the package. I guess I can set the flags there? Now it only contains # PKG_CFLAGS = -Wall # PKG_FFLAGS = -Wall -fbounds-check PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) Göran On 2018-07-05

Re: [R-pkg-devel] compilation flags WARNING

2018-07-05 Thread Heather Turner
On Thu, Jul 5, 2018, at 3:39 PM, Iñaki Úcar wrote: > El jue., 5 jul. 2018 a las 16:11, Göran Broström > () escribió: > > > > I am preparing a CRAN release of eha (a trivial change due to a change > > in the survival package), but when checking the build I get: > > > > goran@M6800:~/R$ R CMD

Re: [R-pkg-devel] compilation flags WARNING

2018-07-05 Thread Iñaki Úcar
El jue., 5 jul. 2018 a las 16:11, Göran Broström () escribió: > > I am preparing a CRAN release of eha (a trivial change due to a change > in the survival package), but when checking the build I get: > > goran@M6800:~/R$ R CMD check --as-cran eha_2.5.2.tar.gz > ... > * checking compilation flags

[R-pkg-devel] compilation flags WARNING

2018-07-05 Thread Göran Broström
I am preparing a CRAN release of eha (a trivial change due to a change in the survival package), but when checking the build I get: goran@M6800:~/R$ R CMD check --as-cran eha_2.5.2.tar.gz ... * checking compilation flags used ... WARNING Compilation used the following non-portable flag(s):