I see two possibilities:

1) the call to 'browser' is inside an 'if'
clause that doesn't exectute.

2)  the call forgets the parentheses, so it is:

  browser

rather than

  browser()

On 28/10/2011 20:04, M. Tran wrote:
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.


--
Patrick Burns
pbu...@pburns.seanet.com
twitter: @portfolioprobe
http://www.portfolioprobe.com/blog
http://www.burns-stat.com
(home of 'Some hints for the R beginner'
and 'The R Inferno')

______________________________________________
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