[R] Namespace in packages

2011-09-01 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) and

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)

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 murdoch.dun...@gmail.comwrote: 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

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

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- function(x,y) f(x,y)*g(x,y)