[R] tracing a warning message?

Ben Bolker ben at zoo.ufl.edu
Tue Oct 22 22:59:11 CEST 2002


  Something like

cd /usr/local/lib/R/library
find . -path "./*/R/*" | xargs grep _ | egrep -v  \
"^[^_]*#.*_.*|[\"\'].*_.*[\"\']" | more

works for me on Linux; this finds all the files in the R directories of 
your installed libraries (provided they're located where I have them), 
searches for instances of _, and weeds out lines where _ occurs after # or 
between quotes (I know there are some patterns this will miss, such as 

a _ "_" 

but this should be good for a first pass)

  Ben Bolker


On Tue, 22 Oct 2002, RenE J.V. Bertin wrote:

> Is there an equivalent to traceback() for tracing a warning message?
> Since upgrading to 1.6.0, I get a message, at startup, that "the use of
> _ is deprecated". I've never used this operator in any of the functions
> I wrote, so some library must use it.
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read
> http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or
> "[un]subscribe" (in the "body", not the subject !)  To:
> r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> 

-- 
318 Carr Hall                                bolker at zoo.ufl.edu
Zoology Department, University of Florida    http://www.zoo.ufl.edu/bolker
Box 118525                                   (ph)  352-392-5697
Gainesville, FL 32611-8525                   (fax) 352-392-3704

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list