From ripley at stats.ox.ac.uk  Fri Mar  5 19:18:42 2010
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Fri, 5 Mar 2010 18:18:42 +0000 (GMT)
Subject: [Rd] Changing the Prompt for browser()
In-Reply-To: <4d17c3501003050846m6c08426cy9ca1139ffefa9525@mail.gmail.com>
References: <4d17c3501003050846m6c08426cy9ca1139ffefa9525@mail.gmail.com>
Message-ID: <alpine.LFD.2.00.1003051816440.9815@gannet.stats.ox.ac.uk>

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



[Rd] Changing the Prompt for browser()
Prof Brian Ripley