Enclose for loop in { } i.e 
```
for (i in 1:10) {

}
```