ldhnr / todor

TODOr - RStudio add-in for finding TODO, FIXME, CHANGED etc. comments in your code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TODOr

This is a RStudio addin that finds all TODO, FIXME, CHANGED etc. comments in your project or package and shows them as a markers list.

Installation

devtools::install_github("dokato/todor")

How to use it?

When you write an R package, sometimes it's useful to note in comments that there is a place for improvement.

simple_function <- function(a, b) {
  # TODO in the future it should be multiplication
  a + b
}

With TODOr, detecting such places in the forest of code lines is simple. There are several options to do so. You can click at "Addins" button in the top panel and select "Find package TODOs" or "Find project TODOs") from the list of possible options:

Addins panel

It is also possible to call todor directly from RStudio console:

> todor::todor()

or you can call:

> todor::todor(c("TODO"))

to limit todor detection only to "TODO" tags.

HINT: By default todor works on projects, but you can call todor_package to search an entire package.

Regardless of the option that you have chosen, as a result you should see the Markers tab next to your console window in RStudio.

TODO Markers

To perform the search on a single file just call:

todor_file("path_to_file.R")

What can it detect?

By default TODOr looks for the following notes:

  • FIXME
  • TODO
  • CHANGED
  • IDEA
  • HACK
  • NOTE
  • REVIEW
  • BUG
  • QUESTION
  • COMBAK
  • TEMP

About

TODOr - RStudio add-in for finding TODO, FIXME, CHANGED etc. comments in your code.


Languages

Language:R 100.0%