Re: [R] Importing only one function from a package

2007-09-29 Thread Frank E Harrell Jr
Matthew Keller wrote: > Hi Soren, > > What I do in cases like this is just copy the function and place it > into my script at the top (or write it into its own source file and > call it from script). Best, > > Matt I'm not a fan of that because you won't get updates when we update the packages.

Re: [R] Importing only one function from a package

2007-09-28 Thread Deepayan Sarkar
On 9/28/07, Søren Højsgaard <[EMAIL PROTECTED]> wrote: > Dear List > > In a package I want to import the mApply function from the Hmisc package, and > I would like to import only that function. > > 1) If I write "Depends: Hmisc" in the DESCRIPTION file I get the whole Hmisc > package, so that is

Re: [R] Importing only one function from a package

2007-09-28 Thread Matthew Keller
Hi Soren, What I do in cases like this is just copy the function and place it into my script at the top (or write it into its own source file and call it from script). Best, Matt On 9/28/07, Søren Højsgaard <[EMAIL PROTECTED]> wrote: > Dear List > > In a package I want to import the mApply funct

[R] Importing only one function from a package

2007-09-28 Thread Søren Højsgaard
Dear List In a package I want to import the mApply function from the Hmisc package, and I would like to import only that function. 1) If I write "Depends: Hmisc" in the DESCRIPTION file I get the whole Hmisc package, so that is not the way to go ahead. 2) According to "Writing R extensions"