[Rd] RE: [R] debugging non-visible functions

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Wed 13 Oct 2004 - 20:22:08 EST


[I'm diverting this to R-devel, as I believe my questions are more appropriate for that.]

> From: Prof Brian Ripley

[snip]
> Luke Tierney recommends removing the NAMESPACE file during
> development of
> a package if you need frequent access to debug/change its functions.

But isn't that a bit troublesome if there is a shared object to be loaded in the NAMESPACE file? If I rename the NAMESPACE file to something else, I would need to put back library.dynam() in .First.lib(), right? I thought it might work to write some code in .First.lib that checks for existence of NAMESPACE, and call libaray.dynam() conditionally. Does this sound about right?

On a slightly different topic: In R-2.0.0, packages with NAMESPACE no longer need to use the package= argument in .C/.Fortran. Does that mean if I remove those arguments, I should put R version >= 2.0.0 in the Depend field of the DESCRIPTION?

Best,
Andy  

> --
> Brian D. Ripley, ripley@stats.ox.ac.uk
> Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
> University of Oxford, Tel: +44 1865 272861 (self)
> 1 South Parks Road, +44 1865 272866 (PA)
> Oxford OX1 3TG, UK Fax: +44 1865 272595
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
>



R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed Oct 13 20:30:43 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 09:00:33 EST