Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Turns out there is an issue already @Spacedman: github.com/rstudio/rstudio/issues/2232. So you work in Emacs and employ polymode when including sql/postgis code as a string in read_sf?