Re: [Rd] R package dependency issues when namespace is not attached

2012-05-13 Thread Martin Morgan
On 05/13/2012 01:39 PM, Duncan Murdoch wrote: On 12-05-13 4:06 PM, Martin Morgan wrote: On 05/13/2012 12:14 PM, Jeroen Ooms wrote: On Sun, May 13, 2012 at 10:14 AM, Uwe Ligges wrote: I do not see any problem in R. If someone is going to import a Namespace, he or she has to do that via import

Re: [Rd] R package dependency issues when namespace is not attached

2012-05-13 Thread Jeroen Ooms
On Sun, May 13, 2012 at 1:06 PM, Martin Morgan wrote: > On 05/13/2012 12:14 PM, Jeroen Ooms wrote: > As a package developer, I want to have the code my package sees be exactly > what is needed, and no more. Exactly. That is why you probably don't use Depends, but Imports in combination with a NAM

Re: [Rd] R package dependency issues when namespace is not attached

2012-05-13 Thread Duncan Murdoch
On 12-05-13 4:06 PM, Martin Morgan wrote: On 05/13/2012 12:14 PM, Jeroen Ooms wrote: On Sun, May 13, 2012 at 10:14 AM, Uwe Ligges wrote: I do not see any problem in R. If someone is going to import a Namespace, he or she has to do that via import directives in the NAMESPACE file. If someone

Re: [Rd] R package dependency issues when namespace is not attached

2012-05-13 Thread Martin Morgan
On 05/13/2012 12:14 PM, Jeroen Ooms wrote: On Sun, May 13, 2012 at 10:14 AM, Uwe Ligges wrote: I do not see any problem in R. If someone is going to import a Namespace, he or she has to do that via import directives in the NAMESPACE file. If someone is going to have a package on the search pa

Re: [Rd] R package dependency issues when namespace is not attached

2012-05-13 Thread Duncan Murdoch
On 12-05-13 3:14 PM, Jeroen Ooms wrote: On Sun, May 13, 2012 at 10:14 AM, Uwe Ligges wrote: I do not see any problem in R. If someone is going to import a Namespace, he or she has to do that via import directives in the NAMESPACE file. If someone is going to have a package on the search path,

Re: [Rd] R package dependency issues when namespace is not attached

2012-05-13 Thread Joshua Wiley
On Sun, May 13, 2012 at 10:14 AM, Uwe Ligges wrote: > > > On 13.05.2012 10:59, Duncan Murdoch wrote: >> >> On 12-05-13 3:15 AM, Jeroen Ooms wrote: >>> >>> I have always assumed that having a package in the 'Depends' field >>> would automatically also import the namespace. However, it seems that >>

Re: [Rd] R package dependency issues when namespace is not attached

2012-05-13 Thread Jeroen Ooms
On Sun, May 13, 2012 at 10:14 AM, Uwe Ligges wrote: > I do not see any problem in R. If someone is going to import a Namespace, he > or she has to do that via import directives in the NAMESPACE file. If > someone is going to have a package on the search path, he or she has to > require() it. The

Re: [Rd] R package dependency issues when namespace is not attached

2012-05-13 Thread Uwe Ligges
On 13.05.2012 10:59, Duncan Murdoch wrote: On 12-05-13 3:15 AM, Jeroen Ooms wrote: I have always assumed that having a package in the 'Depends' field would automatically also import the namespace. However, it seems that in R 2.15, dependencies do not become available until the package is actua

Re: [Rd] R package dependency issues when namespace is not attached

2012-05-13 Thread Duncan Murdoch
On 12-05-13 3:15 AM, Jeroen Ooms wrote: I have always assumed that having a package in the 'Depends' field would automatically also import the namespace. However, it seems that in R 2.15, dependencies do not become available until the package is actually attached to the searchpath. Is this intend

[Rd] R package dependency issues when namespace is not attached

2012-05-13 Thread Jeroen Ooms
I have always assumed that having a package in the 'Depends' field would automatically also import the namespace. However, it seems that in R 2.15, dependencies do not become available until the package is actually attached to the searchpath. Is this intended behavior? The problem appears as follo