Re: [Rd] import question

From: Hadley Wickham <>
Date: Thu, 24 Mar 2011 14:03:18 -0500

On Wed, Mar 23, 2011 at 7:20 PM, Ben Bolker <> wrote:
> Ben Bolker <bbolker <at>> writes:
>>   I have been struggling all day to import a particular function/method
>> combination (ranef(), which extracts the random effects from a mixed
>> model fit) from the nlme package into another package ... so far without
>> success.
>  Answered my own question, finally.
>  Apparently an explicit
> export(ranef)

But why do you want to export this method out of your package? (If you export it, you will need to document it) Can't you rely on nlme being loaded?

i.e. your test should be

x <- 1
class(x) <- "x"


Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University

______________________________________________ mailing list
Received on Thu 24 Mar 2011 - 19:06:26 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 25 Mar 2011 - 06:00:36 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive