I've been struggling with this issue, every time I try to save a plot as image or pdf it gives me R code execution error.
I know there's a post about this months ago, I uninstalled my RStudio and re-install it again and it's still not working. My R Version is 4.0.5 and RStudio is 1.4.1106. Updated ggplot2 package and nothing...
Thanks in advance for your help