When I open a .R file and highlight a line and press Shift + Enter, VS code sends the line to R, but it mangles the text. For example, if I try to run
library(data.table)
Here is what I get back from R:
> 00~library(data.table)01~
Error: unexpected numeric constant in "00~library(data.table)01"
Strangest thing. VS Code works fine for me for Go, Typescript, Haskell, Python, but it doesn't like R. Any suggestions?