Creates or edits a TODO.R file to store your TODOs.
By default it will write in the current RStudio project.
Arguments
- todo
A character vector of lines to add to the TODO file. See details for special handling.
- proj
By default, the active project, an arbitrary directory, or a RStudio project name in the following directories
options(reuseme.destdir), usesproj_list()in this case. If a file, will write there.- code
If
TRUE, will render code output (default is text).
Details
If you use use_todo() with a version-control repository, you may want to
use usethis::use_git_ignore("TODO.R") if you don't want your TODO.R file
to be included in git. If using in a package directory, use
usethis::use_build_ignore("TODO.R") to prevent a note in R CMD CHECK.
If you want to write to a global TODO, use
options(reuseme.global_todo = fs::path("Documents")) to write there.