View source: R/report-taskboard.R
report_taskboard | R Documentation |
Produces three column task board showing any relevant objects (typically issues or milestones) as "Not Started", "In Progress", or "Done".
report_taskboard(
data,
in_progress_when,
include_link = FALSE,
hover = FALSE,
colors = c("#f0e442", "#56b4e9", "#009e73")
)
data |
Dataset, such as those representing issues or milestones (i.e. from |
in_progress_when |
Function with parameter |
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) |
The following logic is used to determine the status of each issue:
Done: Items with a state
of "closed"
In Progress: Custom logic via in_progress_when
. See ?taskboard_helpers
for details.
Not Started: Default case for items neither In Progress or Closed
Returns character string of HTML/CSS with class attribute to be correctly shown "as-is" in RMarkdown
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.