conig / revise

R package for writing revise and resubmits
Other
3 stars 2 forks source link

include warning about Rstudio visual editor? #9

Closed pdparker closed 3 years ago

pdparker commented 3 years ago

the visual editor really screws up the add-ins and often the md tagging. So sick of seeing {#}

conig commented 3 years ago

Yeah that's annoying. You should get this warning in the latest verison:

image

It could trigger inappropriately as I'm looking to see whether context is empty or set to the console which appears to be what's causing the bug. Not sure if there is a better way to check whether in visual editor mode. But this should be appropriate in most cases.

conig commented 3 years ago

I improved this warning. It was trigging on empty scripts which I didn't want. Now it checks to see whether a selection exists. When it doesn't it triggers the warning. I don't think this should misfire.