Since a couple of days ago when I run a for loop in R it gives me plenty of errors related to \"}\". It only happens if I highlight the whole code and run it. If i execute i
I suspect that the issue was in using the R script that I downloaded from a website. I ended up reinstalling R and saving my own R script as a new file. I am not sure what and how, but now it is working fine.