Skip to content
Back to formatted view

Raw Message

Message-ID: <5E45CF9F-06F5-4A0C-9FD8-78483B536693@ucla.edu>
Date: 2012-02-13T00:38:21Z
From: Noah Silverman
Subject: Warnings from script - where?

Hi,

Next challenge today.

I have a script that I call within R:  source("foo.R")
When it finishes, I get the dreaded output:  "There were 50 or more warnings (use warnings() to see the first 50)"

So, I type warnings() and get a nice list.  (Same error repeatedly, so probably something I'm using in a loop.)

The difficult part is I have no idea *where* the warning is being generated.  Is there a way to get R to either halt on warning, or give me more detail when listing warnings after execution?

Thanks!

--
Noah Silverman
UCLA Department of Statistics
8208 Math Sciences Building
Los Angeles, CA 90095