From h.wickham at gmail.com  Tue Jan  8 14:45:49 2008
From: h.wickham at gmail.com (hadley wickham)
Date: Tue, 8 Jan 2008 07:45:49 -0600
Subject: [Rd] checking whether the name space can be loaded with stated
	dependencies
In-Reply-To: <Pine.LNX.4.64.0801080723090.30441@gannet.stats.ox.ac.uk>
References: <f8e6ff050801031831j36005a1cw8449a6f65481845b@mail.gmail.com>
	<Pine.LNX.4.64.0801040237590.26624@gannet.stats.ox.ac.uk>
	<f8e6ff050801040615t3469f32cldfe27bedc5539b1@mail.gmail.com>
	<Pine.LNX.4.64.0801042155140.30877@gannet.stats.ox.ac.uk>
	<Pine.LNX.4.64.0801080723090.30441@gannet.stats.ox.ac.uk>
Message-ID: <f8e6ff050801080545y73fe7857ue7a68b60a2528c73@mail.gmail.com>

On Jan 8, 2008 1:31 AM, Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote:
> Hadley sent me the package, and my guess *was* correct.  The package is
> not using lazy-loading, and early on it has (in aaa-top-level.r)
>
> TopLevel <- proto(expr = {
> ...
>
> That is 'a top-level computation'.  To make this work, you need
> require("proto") in that file.  It also needs require("grid").

Thanks for looking into it.  I must have misinterpreted:

  The R code files should only create R objects and not call functions
  with side effects such as require and options.

because isn't that expression creating an R object?  And something in
R CMD check must have changed recently because that code has been
there as long as ggplot2 has.  Regardless, thanks again for the help
as I never would have found that given that my understanding of the
problem was clearly flawed.

Thanks,

Hadley

-- 
http://had.co.nz/



[Rd] checking whether the name space can be loaded with stated dependencies
hadley wickham