Displaying 1 result from an estimated 1 matches for "getbrowseprompt".
2009 Apr 23
0
Custom browser prompt instead of Browse[1]>
Hello,
Would it be possible to have a custom prompt when browser()'ing.
I have made a simple implementation of this (which is attached), the
basic idea is that instead of the hardcoded sprintf( "Browser[%d]> ",
browselevel), a call to the getBrowsePrompt is made, and obviously the
function is:
> getBrowsePrompt
function (level = 1, env = .GlobalEnv) {
sprintf("Browse[%d]> ", level)
}
<environment: namespace:base>
> debug( rnorm )
> rnorm( 10 )
debugging in: rnorm(10)
debug: .Internal(rnorm(n, mean, sd))
Browse[...