From therneau at mayo.edu  Tue Nov 22 15:32:45 2011
From: therneau at mayo.edu (Terry Therneau)
Date: Tue, 22 Nov 2011 08:32:45 -0600
Subject: [Rd] R-devel Digest, Vol 105, Issue 22
In-Reply-To: <mailman.19.1321959606.14620.r-devel@r-project.org>
References: <mailman.19.1321959606.14620.r-devel@r-project.org>
Message-ID: <1321972365.28427.11.camel@nemo>


On Tue, 2011-11-22 at 12:00 +0100, r-devel-request at r-project.org wrote:
> How are the package authors supposed to develop their own NAMESPACEd
> packages efficiently? And what are the directions R is taking in order
> to
> facilitate the development cycle?
> 

This is my strategy.
I have a separate directory "test.local" in my tree, not exported to
Rforge.  It has a Makefile which loads all the sources from ../R, copies
the C files from ../src and makes a local loadable S.so.  I then do all
my development there, without a name space.  I can overwrite functions,
trace, add browser() calls --- all the things you want to do --- with
standard semantics. I obviously don't "load" my package.
  
I think this is the simplest route.  Namespaces are a great idea, but
during testing I don't want all those protections.  It took me a half
hour to set up the Makefile; I've recouped that effort many times over.

Terry Therneau



[Rd] R-devel Digest, Vol 105, Issue 22
Terry Therneau