[Rd] Rversion.h

Kurt Hornik Kurt.Hornik@wu-wien.ac.at
Thu, 2 May 2002 18:34:11 +0200


>>>>> Kurt Hornik writes:

>>>>> Peter Dalgaard BSA writes:
>> ripley@stats.ox.ac.uk writes:
>>> Our current intention is to no longer include Rversion.h from R.h as from
>>> R 1.6.0 (which is months away).

>> For the inquisitive minds: The reason we want to do this lies in
>> makefile dependencies: Every file that includes R.h currently ends up
>> depending on the date stamp which changes automatically every 24
>> hours. So even a simple bug fix involves substantial rebuilding
>> activity, which is annoying for the developers, and also carries some
>> risk of compiler warning getting missed.

> Note that this implies that packages which unconditionally use R_VERSION
> or R_Version (note that R-exts in facts recommends

>   #if defined(R_VERSION) && R_VERSION >= R_Version(0, 99, 0)

> will fail to install under the current r-devel.

> These packages seems to be

> ...

> It would be great if we could have updates of these packages in the near
> future, either via following the recommended procedure from R-exts or,
> perhaps preferably, removing the pre-1.2.0 compatibility code and adding

> 	Depends: R (>= 1.2.0)

> in the package DESCRIPTION file.

Sorry, that's not quite correct.

As we can have tests in both
    #if R_VERSION < R_Version(1, 2, 0)
and
    #if R_VERSION >= R_Version(1, 2, 0)
style, following the 'recommended procedure' is obviously not good
enough ...

I suggest removing pre-1.2.0 compatibility code and adding
   Depends: R (>= 1.2.0)
in the package DESCRIPTION file.

For version checks for later versions please add
   #include <Rversion.h>

CRAN/Omegaht packages affected by the change are

CORBA
Matrix
RArcInfo
RGnumeric
RMySQL
RODBC
ROracle
RSPerl
RSPython
RSQLite
SJava
SNetscape
SXalan
Slcc
Sxslt
XML
chron
gafit
mda
odesolve

-k
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._