Re: [Rd] Declaring/importing non-exported functions [car] in another package

2013-01-17 Thread Martin Maechler
Michael Friendly frien...@yorku.ca on Wed, 16 Jan 2013 12:52:15 -0500 writes: On 1/16/2013 12:26 PM, John Fox wrote: Dear Duncan and Michael, My initial reaction is that I'd rather not export these functions from the car package since the package already has

[Rd] Declaring/importing non-exported functions [car] in another package

2013-01-16 Thread Michael Friendly
A new function in my heplots package wants to use a non-exported utility function in the car package, df.terms, but this depends on other non-exported functions. From the Writing R extensions manual, I thought I could do this via (in my NAMESPACE) importFrom(car, car:::df.terms,

Re: [Rd] Declaring/importing non-exported functions [car] in another package

2013-01-16 Thread Duncan Murdoch
On 13-01-16 11:25 AM, Michael Friendly wrote: A new function in my heplots package wants to use a non-exported utility function in the car package, df.terms, but this depends on other non-exported functions. From the Writing R extensions manual, I thought I could do this via (in my NAMESPACE)

Re: [Rd] Declaring/importing non-exported functions [car] in another package

2013-01-16 Thread Michael Friendly
On 1/16/2013 11:40 AM, Duncan Murdoch wrote: \S 1.6.1 of the manual says regarding importFrom(): Using |foo:::f| instead of |foo::f| allows access to unexported objects. This is generally not recommended, as the semantics of unexported objects may be changed by the package author in routine

Re: [Rd] Declaring/importing non-exported functions [car] in another package

2013-01-16 Thread Michael Friendly
On 1/16/2013 11:40 AM, Duncan Murdoch wrote: 2. Is my only alternative to copy these functions to my package, also unexported? Using car:::df.terms explicitly is another option. Another possibility is for the car maintainer (John Fox) to export that function from car. Hmm. It turns out

Re: [Rd] Declaring/importing non-exported functions [car] in another package

2013-01-16 Thread John Fox
Dear Duncan and Michael, My initial reaction is that I'd rather not export these functions from the car package since the package already has many exported functions and the functions in question perform low-level operations that won't be of interest to end users. I recognize, however, the

Re: [Rd] Declaring/importing non-exported functions [car] in another package

2013-01-16 Thread Michael Friendly
On 1/16/2013 12:26 PM, John Fox wrote: Dear Duncan and Michael, My initial reaction is that I'd rather not export these functions from the car package since the package already has many exported functions and the functions in question perform low-level operations that won't be of interest to