From sfalcon at fhcrc.org  Tue Jun  6 17:57:33 2006
From: sfalcon at fhcrc.org (Seth Falcon)
Date: Tue, 06 Jun 2006 08:57:33 -0700
Subject: [Rd] Editing a package with a NAMESPACE in place
In-Reply-To: <17541.39530.704285.799326@stat.math.ethz.ch> (Martin Maechler's
	message of "Tue, 6 Jun 2006 17:08:26 +0200")
References: <C0AAEEBC.C8DB%sdavis2@mail.nih.gov> <m2mzcqxsn9.fsf@ziti.local>
	<17541.39530.704285.799326@stat.math.ethz.ch>
Message-ID: <m2d5dmxonm.fsf@ziti.local>

Martin Maechler <maechler at stat.math.ethz.ch> writes:

> I'm quite similar to Seth here. For that reason (and because
> Doug Bates also behaves similarly here, and we talked about it !),
> if you use  R 2.3.0 or newer,
>     example(source)
> will provide the function  sourceDir(),  so you can do
>
>    example(source)
>    sourceDir("<mypackage_SOURCE_dir>/R")

I wonder if a nice improvement would be to provide a package source
directory and have the function parse the DESCRIPTION file in case
there is a Collate field.  In that case, sourceDir() will get the
right order... But maybe it doesn't matter if you have already loaded
the package and are doing development...



[Rd] Editing a package with a NAMESPACE in place
Seth Falcon