Re: [R] package environment versus namespace environment

2014-03-19 Thread Mark Leeds
Hi Duncan: If you think there is anything incorrect in the document, I'd be interested because I refer to that document whenever I'm confused about namespaces, importing etc. Thanks. On Wed, Mar 19, 2014 at 4:31 PM, Duncan Murdoch wrote: > On 14-03-19 1:18 PM, Suraj Gupta wrote: > >> As the a

Re: [R] package environment versus namespace environment

2014-03-19 Thread Duncan Murdoch
On 14-03-19 1:18 PM, Suraj Gupta wrote: As the author of that post, I must respond... # - first comment --- Ducan: "The article that Henrik cited gives a reasonable description up until near the end" Suraj: Given the complexity of the topics at hand, the many accolades I've received f

Re: [R] package environment versus namespace environment

2014-03-19 Thread Suraj Gupta
As the author of that post, I must respond... # - first comment --- Ducan: "The article that Henrik cited gives a reasonable description up until near the end" Suraj: Given the complexity of the topics at hand, the many accolades I've received for the post, and how thoroughly I've appro

Re: [R] package environment versus namespace environment

2014-03-19 Thread Mark Leeds
Hi Everyone: Suraj will respond to Duncan's comments below promptly. Suraj doesn't have the original thread so I am just helping out by commenting here so that he can respond and the thread can be kept continuous. Mark On Sun, Mar 9, 2014 at 9:09 AM, Duncan Murdoch wrote: > On 14-03-08 6:42

Re: [R] package environment versus namespace environment

2014-03-10 Thread Duncan Murdoch
On 14-03-09 1:59 PM, Benjamin Tyner wrote: Duncan, Thanks for the explanation and commentary. Starting to make more sense...so, long story short, it seems the first thing one should check is whether base imports utils: > packageDescription("base") Package: base Version: 3.0.1 Pr

Re: [R] package environment versus namespace environment

2014-03-09 Thread Benjamin Tyner
Duncan, Thanks for the explanation and commentary. Starting to make more sense...so, long story short, it seems the first thing one should check is whether base imports utils: > packageDescription("base") Package: base Version: 3.0.1 Priority: base Title:

Re: [R] package environment versus namespace environment

2014-03-09 Thread Duncan Murdoch
On 14-03-08 6:42 PM, Benjamin Tyner wrote: Duncan, Thank you for the informative link. So, do the loaded namespaces have an "ordering" akin to the package search path that determines that functions in the base namespace can see objects in the utils namespace? (I noticed that loadedNamespaces() j

Re: [R] package environment versus namespace environment

2014-03-08 Thread Henrik Bengtsson
See Suraj Gupta's online article 'How R Searches and Finds Stuff' from March 29, 2012: http://obeautifulcode.com/R/How-R-Searches-And-Finds-Stuff/ It's a very useful write up on this topic. /Henrik On Sat, Mar 8, 2014 at 3:42 PM, Benjamin Tyner wrote: > >Duncan, >Thank you for the in

Re: [R] package environment versus namespace environment

2014-03-08 Thread Benjamin Tyner
Duncan, Thank you for the informative link. So, do the loaded namespaces have an "ordering" akin to the package search path that determines that functions in the base namespace can see objects in the utils namespace? (I noticed that loadedNamespaces() just comes back in alphabetical

Re: [R] package environment versus namespace environment

2014-03-07 Thread Duncan Murdoch
On 07/03/2014 10:16 AM, Benjamin Tyner wrote: Hello, I realize that a function in (for example, function "head1" below) is unable to see (without resorting to "::", anyway) objects in utils (for example, "head" below), since package:base is after package:utils on the search path. However, I

[R] package environment versus namespace environment

2014-03-07 Thread Benjamin Tyner
Hello, I realize that a function in (for example, function "head1" below) is unable to see (without resorting to "::", anyway) objects in utils (for example, "head" below), since package:base is after package:utils on the search path. However, I'm wondering what is the machinery that allows a fu