I am using RStudio 2024.04.2 Build 764.
When I select the RStudio Global Option Code/Diagnostics/Diagnostics for R/Show diagnostics for R
, lines in a document that use double quotes for delimiting text show the red x diagnostics with messages such as "unexpected token" or "expected ',' after expression" . The messages go away if I replace the double quotes with single quotes.
The help for quotes states "... double quotes are preferred ... single quotes are normally only used to delimit character constants containing double quotes."
The TIdyverse style guide states
2.8.1 Character vectors ... Use "
, not '
, for quoting text. The only exception is when the text already contains double quotes and no single quotes.
It appears the double quotes are being ignored. Is this an error in the diagnostics or something else?