Re: [Rd] Package Building and Name Space

2008-01-24 Thread Paul Gilbert
Sorry, once again I was totally confused. Paul Duncan Murdoch wrote: > On 1/24/2008 10:00 AM, Paul Gilbert wrote: > >> I find the error message >> >> >Error in MyPackage::MyFunction : >> >> is a bit misleading. Could it be changed to >> >> Error in Package::Function > > > I believe

Re: [Rd] Package Building and Name Space

2008-01-24 Thread Duncan Murdoch
On 1/24/2008 10:00 AM, Paul Gilbert wrote: > I find the error message > > >Error in MyPackage::MyFunction : > > is a bit misleading. Could it be changed to > > Error in Package::Function I believe "MyPackage" was either the actual name of the package, or what Johannes substituted fo

Re: [Rd] Package Building and Name Space

2008-01-24 Thread Paul Gilbert
I find the error message >Error in MyPackage::MyFunction : is a bit misleading. Could it be changed to Error in Package::Function perhaps with a hint: "Possibly Package is not exporting a NAMESPACE." (At least, I think this does not work unless Package has a namespace.) Paul Gilbert

Re: [Rd] Package Building and Name Space

2008-01-24 Thread Martin Morgan
Hi Joh -- I guess you have something like f <- function() {} MyPackage::f() If you replace that with f <- function() {} .onLoad <- function(libname, pkgname) { MyPackage::f() } I think you'll be fine. The problem is, as the message says, at the time of evaluation with your current scheme

Re: [Rd] Package Building and Name Space

2008-01-24 Thread Johannes Graumann
On Wednesday 23 January 2008 18:24:15 Duncan Murdoch wrote: > On 1/23/2008 11:31 AM, Johannes Graumann wrote: > > On Wednesday 23 January 2008 17:25:38 Duncan Murdoch wrote: > >> On 1/23/2008 11:11 AM, Johannes Graumann wrote: > >> > ... sorry for reposting this in a more appropriate forum than > >

Re: [Rd] Package Building and Name Space

2008-01-24 Thread Johannes Graumann
On Wednesday 23 January 2008 17:25:38 Duncan Murdoch wrote: > On 1/23/2008 11:11 AM, Johannes Graumann wrote: > > ... sorry for reposting this in a more appropriate forum than r.general > > ... > > > > Hello, > > > > I just don't get this and would appreciate if someone could write a line > > or tw

Re: [Rd] Package Building and Name Space

2008-01-23 Thread James W. MacDonald
Duncan Murdoch wrote: > On 1/23/2008 11:11 AM, Johannes Graumann wrote: >> ... sorry for reposting this in a more appropriate forum than r.general ... >> >> Hello, >> >> I just don't get this and would appreciate if someone could write a line or >> two: I'm trying to build this package and it sto

Re: [Rd] Package Building and Name Space

2008-01-23 Thread Duncan Murdoch
On 1/23/2008 11:31 AM, Johannes Graumann wrote: > On Wednesday 23 January 2008 17:25:38 Duncan Murdoch wrote: >> On 1/23/2008 11:11 AM, Johannes Graumann wrote: >> > ... sorry for reposting this in a more appropriate forum than r.general >> > ... >> > >> > Hello, >> > >> > I just don't get this and

Re: [Rd] Package Building and Name Space

2008-01-23 Thread Duncan Murdoch
On 1/23/2008 11:11 AM, Johannes Graumann wrote: > ... sorry for reposting this in a more appropriate forum than r.general ... > > Hello, > > I just don't get this and would appreciate if someone could write a line or > two: I'm trying to build this package and it stops installing after I add > th