Fix syntax in R for loop
Add R for and while snippets
Merge pull request #348 from r4d2/master

R: Fixed for loop syntax and added while