From Kurt.Hornik@wu-wien.ac.at  Thu May  2 17:34:11 2002
From: Kurt.Hornik@wu-wien.ac.at (Kurt Hornik)
Date: Thu, 2 May 2002 18:34:11 +0200
Subject: [Rd] Rversion.h
In-Reply-To: <15569.24780.734088.702887@mithrandir.hornik.net>
References: <Pine.LNX.4.31.0205021125370.4830-100000@gannet.stats>
 <x26626lnkw.fsf@blueberry.kubism.ku.dk>
 <15569.24780.734088.702887@mithrandir.hornik.net>
Message-ID: <15569.27267.926617.344251@mithrandir.hornik.net>

>>>>> 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Rversion.h
Kurt Hornik