0

Does anyone know how to stop program execution without exiting the R console? I could just call q("no") but am actually looking for something similar to a throws statement to stop the execution, but leave the console active. Return?

joran
  • 169,992
  • 32
  • 429
  • 468
Kevin Parker
  • 16,975
  • 20
  • 76
  • 105
  • What... those aren't constructive comments. – Kevin Parker Jul 10 '12 at 04:25
  • Install the **fortunes** package. Both of those will reveal witty comments from R-help mailing list referencing `stop()`, which is the answer you accepted. Not un-constructive, just overly witty. – joran Jul 10 '12 at 04:45

1 Answers1

5

You can use the stop function:

stop()
David Robinson
  • 77,383
  • 16
  • 167
  • 187