[ESS] breaking long lines in Stata do-files

Oliver Jones ojones at wiwi.uni-bielefeld.de
Mon Feb 11 17:19:13 CET 2013


Hi,

I didn't change C-RET and it works as expected.
The problem is that ess seem not to know the meaning of /// at the end of a line.

Best
Oliver

Am 11.02.2013 17:11, schrieb Vitalie Spinu:
>    >>  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