Run highlighted code R in VS-code gives an error message
I cannot run a chunk of code (a subset of my .r script files) without getting an error message. When I run the whole R file (pressing run source) or row by row, I can run the code without any problems.