[ESS] Lines in coding with ESS

Seb spluque at gmail.com
Mon Feb 8 15:41:09 CET 2010


On Mon, 8 Feb 2010 10:01:32 -0200,
Ronaldo Reis Junior <ronaldo.reis at unimontes.br> wrote:

> Hi, I dont know if this a coding rule or a program bug.

> When I write this function below it work:

> a <- c(1,2) for(i in a){ print(i)
> }

[1] 1
> [1] 2

> But if I write this function with line space it dont work.

> a <- c(1,2) for(i in a){

>   print(i)

> }

Error: unexpected '}' in "}"

> I remember that in early R version this limitation dont exist.

> This is a bug, a rule or a missconfiguration on my linux system?

Do you have a recipe to reproduce this?  I don't see that problem
sending the lines to the inferior process, nor typing them directly
there, in:

GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.6) of
2010-01-27 on brahms, modified by Debian

and the same packages you list.


-- 
Seb



More information about the ESS-help mailing list