-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME.Rmd
More file actions
68 lines (48 loc) · 1.73 KB
/
Copy pathREADME.Rmd
File metadata and controls
68 lines (48 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# Todo Or Die
<!-- badges: start -->
[](https://CRAN.R-project.org/package=todoordie) [](https://github.com/edavidaja/todoordie/actions)
<!-- badges: end -->
Write TODOs in Code That Ensure You Actually Do Them
## Installation
You can install the development version from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("edavidaja/todoordie")
```
## Usage
Use the functions directly:
```{r date, error=TRUE}
todoordie::after_date("2021-01-21", "fix after conf 2021")
```
```{r github, error=TRUE}
todoordie::issue_closed("tidyverse/dtplyr#154", "rewrite once dtplyr supports across()")
```
```{r cran, error=TRUE}
todoordie::cran_version("plumber", "1.0.0", "no 0.* in production")
```
If you'd prefer for them to live in your function documentation, you can also use them as roxgyen tags:
``` r
#' sketchy function
#'
#' @todoordie after_date 2012-12-21 if we're not all dead make this less sketchy
sketchy <- function() {}
```
expired todos should produce errors when you run `devtools::document()`.
## Prior art:
[Ruby](https://github.com/searls/todo_or_die)
[Rust](https://github.com/davidpdrsn/todo-or-die)
[Python](https://github.com/achedeuzot/py-todo-or-die)
[Elixir](https://hex.pm/packages/credo_todo_or_die)
[Typescript](https://github.com/ngnijland/typescript-todo-or-die-plugin)