report_taskboard: Report HTML-based task board of item status

Description Usage Arguments Details Value Examples

View source: R/report-taskboard.R

Description

Produces three column task board showing any relevant objects (typically issues or milestones) as "Not Started", "In Progress", or "Done".

Usage

1
2
report_taskboard(data, in_progress_when, include_link = FALSE,
  hover = FALSE, colors = c("#f0e442", "#56b4e9", "#009e73"))

Arguments

data

Dataset, such as those representing issues or milestones (i.e. from parse_issues()). Must have state variable.

in_progress_when

Function with parameter data that returns Boolean vector. Generally, one of the taskboard helper functions. See ?taskboard_helpers for details.

include_link

Boolean whether or not to include links back to GitHub

hover

Boolean whether or not tasks should be animated to slightly enlarge on hover

colors

Character vector of hex colors for not started, in progress, and complete tasks (respectively)

Details

The following logic is used to determine the status of each issue:

Value

Returns character string of HTML/CSS with class attribute to be correctly shown "as-is" in RMarkdown

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# in RMarkdown
```{r}
issues <- get_issues(myrepo, milestone = 1)
issues_df <- parse_issues(issues)
report_taskboard(issues_df, in_progress_when = is_labeled_with('in-progress'))
````

## End(Not run)

projmgr documentation built on Aug. 5, 2019, 5:15 p.m.