Skip to content
Back to formatted view

Raw Message

Message-ID: <1319828693133-3948920.post@n4.nabble.com>
Date: 2011-10-28T19:04:53Z
From: M. Tran
Subject: program never enters browser mode when I add browser()

Dear All

I have a program that breaks at the following lines of code:

bigfunction =
{
... 

object1 = myfunction(x)
object2 = strsplit(object1, ",")[[1]]

...
}

where myfunction is defined elsewhere outside of bigfunction.  

The error I get is "error in strsplit() -- object1 not found".

However, when I insert browser() into my code so that the above reads,

bigfunction =
{
... 

browser()
object1 = myfunction(x)
object2 = strsplit(object1, ",")[[1]]

...
}

my entire program runs successfully, and oddly *never enters browser mode*.

Has anyone encountered a similar problem?  Any advice would be greatly
appreciated.

Thank you,
Michelle

--
View this message in context: http://r.789695.n4.nabble.com/program-never-enters-browser-mode-when-I-add-browser-tp3948920p3948920.html
Sent from the R help mailing list archive at Nabble.com.