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

Liaw, Andy andy_liaw at merck.com
Wed Oct 13 12:22:08 CEST 2004


[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 at 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 at 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
> 
>



More information about the R-devel mailing list