Skip to content
Prev 2879 / 12125 Next

[R-pkg-devel] compilation flags WARNING

On Thu, Jul 5, 2018, at 3:39 PM, I?aki ?car wrote:
Yes, by default the compilation flags are those set when R was installed. You can see the current flags via

R CMD config CFLAGS

which in your case should include  ?-Wdate-time? etc.

As I?aki says you can safely ignore the warning, but if you prefer to not to have any warnings you can solve this by creating a Makevars.site file with CFLAGS excluding the non-portable ones, e.g.

CFLAGS=-Wall -g O0 -fPIC

This should be saved in the /etc directory of R.home(), e.g. /usr/lib/R/etc.

See https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Customizing-package-compilation for more information.

Heather