TODO comments in rStudio
I would suggest that you consider the todor
RStudio add-in by dokato. After installing via devtools
:
devtools::install_github("dokato/todor")
You will be able to conveniently list ToDo items across your project:
(images and code sourced from: https://github.com/dokato/todor)
You can use the outline list by having:
# TODO I definitely need more unit tests here! ####
Just keep in mind that you have to have 4 '#' at the end of the line
There is no such system in RStudio, but there is an easy way of searching for the comments. Do this:
- Go to Edit -> Find in Files
- Tick the checkbox "Regular Expression"
- Enter the following regular expression:
^\s*# TODO
- Click Find
That regular expression will match any line that starts with # TODO
.