todos | R Documentation |
Search for #`` TODO
tags
todos(
pattern = NULL,
path = ".",
force = getOption("mark.todos.force"),
ext = getOption("mark.todos.ext"),
ignore = NULL,
...
)
fixmes(
pattern = NULL,
path = ".",
force = getOption("mark.todos.force"),
ext = getOption("mark.todos.ext"),
ignore = NULL,
...
)
pattern |
A character string containing a regular expression to filter
for comments after tags; default |
path |
Where to search for the todos. If this is a directory, paths
matching the |
force |
If |
ext |
A vector of file extensions to search for todos. Ignored when
|
ignore |
A regular expression for files to ignore. Ignored if |
... |
Additional parameters passed to |
Searches for TODO
comments in files. Extensions with md
, Rmd
,
and qmd
specifically search for a <-- TODO * -->
string, whereas
everything else is found with # TODO
.
NULL
if none are found, otherwise a data.frame
with the line
number, file name, and TODO comment.
## Not run:
file <- tempfile()
writeLines(c(
"# TODO make x longer",
"x <- 1:10",
"length(x)",
"# TODO add another example",
"# FIXME This is a fixme"
), file)
todos(path = file)
todos("example", path = file)
fixmes(path = file)
file.remove(file)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.