Create a new IssuesTB object
new_issues(x = NULL, ...)
# S3 method for class 'IssueTB'
new_issues(x, ...)
# S3 method for class 'IssuesTB'
new_issues(x, ...)
# S3 method for class 'data.frame'
new_issues(x, ...)
# S3 method for class 'list'
new_issues(x, ...)
# S3 method for class '`NULL`'
new_issues(x, ...)
# Default S3 method
new_issues(
x,
title = NULL,
body = NULL,
number = NULL,
state = NULL,
created_at = format_timestamp(NA_integer_),
closed_at = format_timestamp(NA_integer_),
closed_by = NA_character_,
labels = list(),
comments = list(),
milestone = NA_character_,
repo = NA_character_,
owner = NA_character_,
url = NA_character_,
html_url = NA_character_,
creator = NA_character_,
assignee = NA_character_,
state_reason = NA_character_,
...
)a object representing a list of issues (IssuesTB object, a
list or a data.frame) or a single issue (IssueTB class)
Currently not used.
a vector of string. The titles of the issues.
a vector of string. The bodies (text) of the issues.
a vector of string. The numbers of the issues.
a vector of string that is either "open" (by default) if
the issues are still open or "closed" if the issues are now closed.
a vector of date (or timestamp). The creation date of the issues.
a vector of date (or timestamp). The closing date of the issues.
a vector of string. The usernames of the person who closed the issues.
a list of vector string (or NULL). The labels of the issues.
a list of vector string. The comments of the issues.
a vector of string (or NULL). The milestones of the issues.
Character. Repositories name.
Character string containing the owners name.
a vector of string. The URLs of the API to the issues.
a vector of string. The URLs to the issues.
a vector of string. The usernames of the creator of the issues.
a vector of string. The usernames of the assignee of the issues.
a vector of string. "open", "completed",
"reopened", "not_planned" or "duplicate".
a IssuesTB object.
# Empty list of issues
issues1 <- new_issues()
# List of issues from issue
issue1 <- new_issue(
title = "Une autre issue",
state = "open",
body = "J'ai une question au sujet de...",
number = 2L,
created_at = Sys.Date()
)
issues2 <- new_issues(x = issue1)
# Custom issues
issues3 <- new_issues(
title = "Une autre issue",
state = "open",
body = "J'ai une question au sujet de...",
number = 2L,
created_at = Sys.Date()
)
issues4 <- new_issues(
title = c("Nouvelle issue", "Une autre issue"),
body = c("Un nouveau bug pour la fonction...",
"J'ai une question au sujet de..."),
state = c("open", "closed"),
number = 1:2,
created_at = c(Sys.Date() - 30, Sys.Date())
)