Re: [R] Lines in code

2010-02-05 Thread Duncan Murdoch
On 05/02/2010 7:46 AM, Ronaldo Reis Júnior 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(

[R] Lines in code

2010-02-05 Thread Ronaldo Reis Júnior
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