Message-ID: <Pine.LNX.4.64.0603251458030.7761@tajo.ucsd.edu>
Date: 2006-03-25T23:06:16Z
From: Charles C. Berry
Subject: Undocumented features of 'browser' (and possible changes)
In-Reply-To: <adf71a630603241332g4e592112icc2944d969207924@mail.gmail.com>
On Fri, 24 Mar 2006, Kevin Wright wrote:
> I often use browser() when debugging a function. After entering
> browser, I would find it very useful to be able to cut-and-paste a
> chunk of R code to the browser (or use ess-eval-region in Emacs). An
> inconvenience, however, is that both blank lines and comment lines
> will exit the browser.
Kevin,
This trick may help:
Browse[1]> { ### blank lines will be ignored
+
+
+
+ x+1
+ }
[1] 2
Browse[1]>
Maybe you want to write 'ess-eval-region-in-braces'.
[rest deleted]
Chuck
Charles C. Berry (858) 534-2098
Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu UC San Diego
http://biostat.ucsd.edu/~cberry/ La Jolla, San Diego 92093-0717