This question has been asked a number of times, but my issue appears to be different.
I'm getting the error message "attempt to use non-zero variable name" whenever I click "Run Document" in R studio for a Shiny .Rmd file. This happens even when I attempt to run the default Shiny template in R studio. It also occurs if I comment out all code blocks except the shiny header (see image).
Knitting a .rmd without Shiny works fine. The same code was working fine last week. I've reinstalled the Shiny and Rmarkdown packages, to no effect.