This is definitely a strange edge case I presume. I'm looking at this code piece:
# good and bad
ggplot(data) +
scale_fill_viridis_c(begin = 0,
alpha = 0.5,
direction = -1,
na.value = "gray",
trans = "log",
breaks = {{ legend_breaks }},
labels = {{ legend_labels }} )
In my original script (Rmd) it gets flagged as unnecessary whitespace so I copied this part to a new script and it didn't get flagged. However, once I saved the file and when back to the source window it was flagged:
I'm running RStudio 1.4.1103, but when checking for updates it tells me I have the latest version.