Hi, Is there a way to know which library is giving a warning? Specifically, I'm getting a set of warnings: "Too many open raster files" Thanks and best wishes, -- Javier Garc?a-Pintado Institute of Earth Sciences Jaume Almera (CSIC) Lluis Sole Sabaris s/n, 08028 Barcelona Phone: +34 934095410 Fax: +34 934110012 e-mail:jgarcia at ija.csic.es
Try this: options(warn=2) # warnings are converted to errors # rerun your software and at the warning it will stop with an error traceback() On 8/6/07, javier garcia-pintado <jgarcia at ija.csic.es> wrote:> Hi, > Is there a way to know which library is giving a warning? > Specifically, I'm getting a set of warnings: > > "Too many open raster files" > > Thanks and best wishes, > > -- > Javier Garc?a-Pintado > Institute of Earth Sciences Jaume Almera (CSIC) > Lluis Sole Sabaris s/n, 08028 Barcelona > Phone: +34 934095410 > Fax: +34 934110012 > e-mail:jgarcia at ija.csic.es > > > ______________________________________________ > 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 > and provide commented, minimal, self-contained, reproducible code. > >
Possible routes: 1) Use options(warn=2) and traceback(). 2) Search the *package* sources. This is from package GRASS, I believe. (Not all messages come from packages: they can come from R itself or from compiled code linked into a package.) On Mon, 6 Aug 2007, javier garcia-pintado wrote:> Hi, > Is there a way to know which library is giving a warning? > Specifically, I'm getting a set of warnings: > > "Too many open raster files" > > Thanks and best wishes, > >-- 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