Interprets dataframe or tibble of issues by breaking apart milestones and listing each issue title as open or closed, and uses HTML to format results in a highly readable and attractive way. Resulting object returned is a character vector of HTML code with the added class of 'knit_asis' so that when included in an RMarkdown document knitting to HTML, the results will be correctly rendered as HTML.

report_discussion(comments, issue = NA, link_url = TRUE)

Arguments

comments

Dataframe or tibble of comments for a single issue, as returned by get_issue_comments()

issue

Optional dataframe or tibble of issues, as returned by get_issues(). If provided, output includes issue-level data such as the title, initial description, creation date, etc.

link_url

Boolean. Whether or not to provide link to each item, as provided by url column in dataset

Value

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

Details

HTML output is wrapped in a <div> of class 'report_disccusion' for custom CSS styling.

See also

Examples

if (FALSE) { # the following could be run in RMarkdown repo <- create_repo_ref("emilyriederer", "projmgr") issue <- get_issues(repo, number = 15) issue_df <- parse_issues(issue) comments <- get_issue_comments(repo, number = 15) comments_df <- parse_issue_comments(comments) report_discussion(issue_df, comments_df) }