[R] [Rd] Changing the Prompt for browser()

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Mar 5 19:18:42 CET 2010


On Fri, 5 Mar 2010, Andrew Redd wrote:

> Is there a way that I can change the prompt for within a browser() call.  I
> often use use code like
>
>> with(obj1,browser())
> Browse[1]>
>
> Is there a way that I can set it so that I can get something like
>
>> with(obj1,browser(prompt="obj1"))
> obj1[1]>
>
> I know that prompt is not a valid option for browser, but it would be nice
> if it were.   There is an option('prompt")  but that does not affect the
> prompt for browser.  Can I change this and how?

Only by changing the sources.  The prompt is hard-coded in 
src/main/main.c.

>
> Thanks,
> Andrew
>
> 	[[alternative HTML version deleted]]

Please respect the request in the posting guide not to send HTML.

> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list