From mtmorgan at fhcrc.org  Fri Dec 23 23:56:28 2011
From: mtmorgan at fhcrc.org (Martin Morgan)
Date: Fri, 23 Dec 2011 14:56:28 -0800
Subject: [Rd] Debugging namespace problems
In-Reply-To: <CABdHhvEf23dRNkSaMcM3hLj-vnm8qibXpFZ8T8xSMRd0S8SpUA@mail.gmail.com>
References: <CABdHhvFG-3g5UFps-sn_wvaK_HKgeyhY1=8WNQ84H5sYVvL1ww@mail.gmail.com>
	<CABdHhvHr90tFo15yEWpVaw-XEpc0=SJ9NOAESN99LmK36D4t8Q@mail.gmail.com>
	<CABdHhvEoBaXV9Q-J5yrA1LS=93DX40u-iMSthnyZ65G7KPKe=g@mail.gmail.com>
	<4EF4FC9F.2020106@fhcrc.org> <4EF4FE7A.2060405@fhcrc.org>
	<CABdHhvEf23dRNkSaMcM3hLj-vnm8qibXpFZ8T8xSMRd0S8SpUA@mail.gmail.com>
Message-ID: <4EF5071C.5030802@fhcrc.org>

On 12/23/2011 02:38 PM, Hadley Wickham wrote:
>>> in scales_add_defaults, where the symbol isn't found in the globalenv()
>>> when nstest is attached and ggplot2 only loaded, but is (via the search
>>> path) when ggplot2 is attached.
>>
>> and topenv(parent.frame()) is a replacement that gets to .GlobalEnv for
>> ggplot2, and to the name space for nstest.
>
> Wonderful - thanks!  Any hints on how you discovered the problem?

nothing clever to report; it reproduces at the command line so 
traceback(), options(error=recover), and then debug(ggplot2::ggplot_build).

Martin

>
> Hadley
>


-- 
Computational Biology
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N. PO Box 19024 Seattle, WA 98109

Location: M1-B861
Telephone: 206 667-2793



[Rd] Debugging namespace problems
Martin Morgan