dokato / todor

TODOr - RStudio add-in for finding TODO, FIXME, CHANGED etc. comments in your code.
Other
246 stars 12 forks source link

Describe all the options available #29

Closed dokato closed 4 years ago

dokato commented 4 years ago

... eg in the Readme.

Recently quite a lot of options were introduced.

earcanal commented 4 years ago

Could you also explain how to use options() to set default patterns for all RStudio projects? I'm hoping I can write

options(todor_patterns = c("FIXME", "TODO", "BOOKMARK" ...))

somewhere so that it becomes the default for all source code.

dokato commented 4 years ago

Hey @earcanal so the easiest way to do it is to modify your .Rprofile. You can find it for example in:

> file.path(getwd(), ".Rprofile")

and then you add options with todo patterns. It should be loaded at the beginning of each new Rstudio session.

earcanal commented 4 years ago

Perfect. Mine now says

options(todor_patterns = c("FIXME", "TODO", "BOOKMARK", "SMELL", "NOTE", "REVIEW", "BUG", "DEBT"))