Re: [R] Namespace in packages

2011-09-01 Thread Erich Neuwirth
On 9/1/2011 1:04 PM, Eran Eidinger wrote: >> >>> Hello, >>> >>> I wonder how I might create a package that only reveals some of the >>> function >>> in the package to the user. >>> >>> I've tried creating an R package using the following: >>> f<- function(x,y) x+y >>> g<- function(x,y) x-y >>> h<

Re: [R] Namespace in packages

2011-09-01 Thread Duncan Murdoch
On 11-09-01 7:04 AM, Eran Eidinger wrote: Yes, the package works fine without the NAMESPACE file, and all 3 functions are visible. When you include the NAMESPACE file, what does R CMD check tell you? Duncan Murdoch On Thu, Sep 1, 2011 at 2:02 PM, Duncan Murdochwrote: On 11-09-01 2:27 AM,

Re: [R] Namespace in packages

2011-09-01 Thread Eran Eidinger
Yes, the package works fine without the NAMESPACE file, and all 3 functions are visible. On Thu, Sep 1, 2011 at 2:02 PM, Duncan Murdoch wrote: > On 11-09-01 2:27 AM, Eran Eidinger wrote: > >> Hello, >> >> I wonder how I might create a package that only reveals some of the >> function >> in the p

Re: [R] Namespace in packages

2011-09-01 Thread Duncan Murdoch
On 11-09-01 2:27 AM, Eran Eidinger wrote: Hello, I wonder how I might create a package that only reveals some of the function in the package to the user. I've tried creating an R package using the following: f<- function(x,y) x+y g<- function(x,y) x-y h<- function(x,y) f(x,y)*g(x,y) package.sk

[R] Namespace in packages

2011-08-31 Thread Eran Eidinger
Hello, I wonder how I might create a package that only reveals some of the function in the package to the user. I've tried creating an R package using the following: f <- function(x,y) x+y g <- function(x,y) x-y h <- function(x,y) f(x,y)*g(x,y) package.skeleton(list=c("f","g","h"), name="mypkg")