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.

______________________________________________
R-help@r-project.org 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.

Reply via email to