Skip to content
Back to formatted view

Raw Message

Message-ID: <50ABCC23.6010706@gmail.com>
Date: 2012-11-20T18:29:55Z
From: Duncan Murdoch
Subject: Puzzling "Execution halted"
In-Reply-To: <CAHmzXO77Cxt9ZkVLDjqdzk5eUpoJvO8O3jv5jQ0GUX8g1ikRpQ@mail.gmail.com>

On 20/11/2012 12:54 PM, Gang Chen wrote:
> I wrote an R program that does heavy computations with hundreds of
> lines of code. It's running fine both interactively and in batch mode
> on a Mac OS X computer. The program also has no problem running on a
> Linux system (Fedora 14) interactively. However, when I try it on the
> terminal in batch mode on the Linux system, it chokes in the middle of
> the computation with the "Execution halted" error message.
>
> I already put try or tryCatch in those places where computation may
> throw an error. And the warnings are set in default (options(warn=1)).
> I wish I could provide the code for help, but that seems impractical.
> How to debug this?

I think you have to use the old-fashioned way:  sprinkle print() or 
cat() statements through your program to identify where the error is 
happening.

Duncan Murdoch