From ligges at statistik.uni-dortmund.de  Tue Jun  6 14:33:58 2006
From: ligges at statistik.uni-dortmund.de (Uwe Ligges)
Date: Tue, 06 Jun 2006 14:33:58 +0200
Subject: [Rd] Editing a package with a NAMESPACE in place
In-Reply-To: <C0AAED04.C8D7%sdavis2@mail.nih.gov>
References: <C0AAED04.C8D7%sdavis2@mail.nih.gov>
Message-ID: <44857636.6090903@statistik.uni-dortmund.de>

Sean Davis wrote:
> I would like to edit a function from a package that uses a NAMESPACE, but in
> place (after the package is loaded).  As a simple example, I would like to
> add a browser() call to a line in one of the functions for debugging
> purposes.  Since the function is in the package namespace, I can't do that
> directly by simply making a copy of the function and editing it--that copy
> doesn't get used.  I tried assigning into the package environment, but it is
> locked, it appears.  How do I go about doing this without changing the
> package source, then reinstalling and reloading?
> 
> Thanks,
> Sean
> 


See ?assignInNamespace and ?fixInNamespace

During developing, I suggest to remove the NAMESPACE temporarily.

Uwe Ligges



[Rd] Editing a package with a NAMESPACE in place
Uwe Ligges