I use R in Visual studio code and see some blue underlines in all print functions. What does it mean?
I tried to add some more spaces, cause it helped to avoid blue underlines in other parts of the code, but it doesn’t help.
I use R in Visual studio code and see some blue underlines in all print functions. What does it mean?
I tried to add some more spaces, cause it helped to avoid blue underlines in other parts of the code, but it doesn’t help.
2
Answers
I’m pretty sure that this is the R quotes linter telling you that you ought be be using double-quote delimiters ("") rather than single-quote delimiters (”)
The
?Quotes
manual page in base R says(emphasis added).
You can fix the problem by switching to double-quote delimiters. The other option would be to turn off this linter option. According to @SamR in comments, see here for where your linter definition files might be (
~/.lintr
is typical) and edit it to includeLike Ben said in his response, this is going to be due to the linter. Now while I don’t know the specific issue, you should be able to check and apply the linters suggestions.
If this doesn’t work you should be able to disable the linter.
Acording to the lintr docs you should be able to adjust your .lintr file to set custom rules/exclusions. You can adjust your file to something like this (I would do this as R linting is fairly aggressive)
See this github issue on the vscode-R repository for more information.