[Rd] Package dependencies and imports

From: John Fox <jfox_at_mcmaster.ca>
Date: Thu 21 Sep 2006 - 15:22:17 GMT

Dear list members,

I'm encountering the following problem with package dependencies and imports:

The Rcmdr package doesn't declare a formal dependency (via depends or suggests in the package DESCRIPTION) on the rgl package because the latter apparently causes problems on some systems. This allows the Rcmdr package to build and check on systems without rgl present; if rgl isn't present, then menu items using it are disabled (in the development version of the Rcmdr package, not installed in the first place).

If rgl is present, however, the Rcmdr package uses some unexported functions in it. I've done this via rgl::: to avoid importing from the rgl namespace: Because rgl isn't declared as a dependency, I can't import its namespace. In the current R 2.4.0 alpha and R 2.5.0 devel, however, using rgl::: generates a warning when the package is checked.

Is there a way around this short of literally copying the unexported functions in rgl that Rcmdr uses?


John Fox
Department of Sociology
McMaster University
Hamilton, Ontario
Canada L8S 4M4

R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri Sep 22 01:39:51 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 21 Sep 2006 - 18:30:08 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.