Skip to content

NAMESPACE directives ?

2 messages · Thomas Stabla, Duncan Murdoch

#
Hello,

I've built the package distr (see link below) successfully with R 1.8.1
and R 1.9.0 beta (under Linux).
As to make the package compatible to R 1.8.1 / 1.9.0, I have to use two
different NAMESPACE files.

For 1.8.1 it has to contain

  import("methods")
  import("stepfun")

and for 1.9.0 the "import"-part has to be

  import("methods")
  import("stats")
  import("graphics")

As a consequence, I can't use the package built with 1.8.1 / 1.9.0
under 1.9.0 / 1.8.1, respectively.

I've read the NAMESPACE section (1.6 Package name space) in Writing R
Extensions (the newest version from R-devel/doc/manual) which says:
Is there any way to make the packages built with one version compatible to
the other one?

Best Regards,
Thomas Stabla

http://www.uni-bayreuth.de/departments/math/org/mathe7/DISTR/
#
On Mon, 5 Apr 2004 19:01:11 +0200 (CEST), Thomas Stabla
<statho3@web.de> wrote :
Unfortunately, I don't think there is.  You'll need two different
versions of the NAMESPACE file, so probably two different versions of
the package.

This is a limitation of 1.8.1 that I think has been fixed in 1.9.0;
you will be allowed conditionals in the file from now on, but 1.8.1
won't know what to do with them.

Duncan Murdoch