[ESS] breaking long lines in Stata do-files

Vitalie Spinu spinuvit at gmail.com
Mon Feb 11 17:11:51 CET 2013


  >> Oliver Jones <ojones at wiwi.uni-bielefeld.de>
  >> on Mon, 11 Feb 2013 17:04:38 +0100 wrote:

  > Hi,

  > is there some way to evaluate long commands that go over multiple lines in the do-file?
  > I have code like this

  > label define lbl_test 1 "some label name for the value 1" 2 "another label" ///
  >                       3 "and even more"

C-c C-c or C-M-x should do precisely that, evaluate paragraphs.

  > I tried marking both lines and then hiting C+RET, but it seems like ess doesn't
  > understand that that "///" at the end of a line means that the command is
  > continued on the next line.

What is C-RET for you? The default ess-eval-region-or-line-and-step
should evaluate the region if it is highlighted. If it doesn't, that
means a bug.

    Vitalie



More information about the ESS-help mailing list