[Rd] Minor feature request: Let 'R CMD co*nfig' tell me where the INCLDIR is

Martin Maechler maechler at stat.math.ethz.ch
Fri Oct 17 10:09:42 CEST 2008


>>>>> "DE" == Dirk Eddelbuettel <edd at debian.org>
>>>>>     on Thu, 16 Oct 2008 20:45:40 -0500 writes:

    DE> On Debian / Ubuntu / ... we have [1] 

    DE> edd at ron:~> R CMD config --cppflags
    DE> -I/usr/share/R/include
    DE> edd at ron:~>   

Actually, on Ubuntu 8.04 (64-bit) I get

  MM at deb2:~$ /usr/bin/R CMD config --cppflags
  -I/usr/share/R/include -I/usr/share/R/include

which has the -I<..> doubled, a slight infelicity ... 
Wonder how this came about.

  MM at deb2:~$ uname -a
  Linux deb2 2.6.24-19-generic #1 SMP Wed Jun 4 15:10:52 UTC 2008 x86_64 GNU/Linux

This is - almost surely - the r-base-core package from CRAN.

    DE> but I seem to have no way to learn 'just' the /usr/share/R/include part from
    DE> R CMD config.  It would be nice if something like

    DE> R CMD config R_INCL_DIR 

    DE> could be added as we do have 'LIBnn'. Obviously, this is nothing we need now
    DE> before 2.8.0.  But if it could get added to R-devel, I'd appreciate it.  

    DE> [ The context is that 'R CMD INSTALL' does fewer things than a few of us
    DE> desired (as per a thread a few months ago) but seemingly nobody with the
    DE> magic powers to change this feels the same way. ]

or has had time for it, at the time?
Did you get reactions from R-core at all?

Regards,
Martin

    DE> Dirk

    DE> [1] Old and boring story of show 'arch-independent' files like headers ended
    DE> up in /usr/share omitted here.



More information about the R-devel mailing list