Skip to content
Prev 256271 / 398506 Next

How to *completely* stop a script after stop()?

On 08/04/2011 11:47 AM, algorimancer wrote:
It sounds as though you are talking about the Windows GUI.  That's 
important, because other GUIs probably have different behaviour.

To run a script up to the first error, do this:

Highlight the part you want to run (or Ctrl-a for everything).
Copy the code using Ctrl-c.
In the console, run source("clipboard") (perhaps with echo=TRUE if you 
want to see it as it goes).  This is a lot of typing the first time you 
do it, but after that, the up arrow can bring back the command.

It would probably make sense for Ctrl-R to do something functionally 
equivalent to Ctrl-C, source("clipboard", echo=TRUE) rather than the 
current behaviour.  Not going to happen in 2.13.x, but maybe in 2.14.x 
in the fall.

Duncan Murdoch