TODO comments in rStudio

drmariod picture drmariod · Aug 7, 2015 · Viewed 7.2k times · Source

is there a way to list ToDo comments in rstudio?
Before I used eclipse and really loved to put some # TODO I definitely need more unit tests here! comments in my source code.

I could not find this feature in rStudio so far and I was wondering, if there is something like a plugin or maybe an easy way of searching such comments.

Answer

Konrad picture Konrad · Mar 28, 2018

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:

sourcing

Official example

(images and code sourced from: https://github.com/dokato/todor)