Skip to content

Commit bfc8fe8

Browse files
committed
Finishi respond to CRAN comments
See cran-comments.md for more detail. - Give all functions \values - Boost up examples a bit
1 parent 8c862dd commit bfc8fe8

28 files changed

+127
-15
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Suggests: askpass,
2424
testthat,
2525
tibble
2626
Roxygen: list(markdown = TRUE)
27-
RoxygenNote: 7.0.2
27+
RoxygenNote: 7.1.0
2828
VignetteBuilder: knitr
2929
Encoding: UTF-8
3030
LazyData: true

R/rt_login.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#' @param password (character) Your password.
1212
#' @param ... Other arguments passed to \code{\link{rt_POST}}
1313
#'
14+
#' @return Either `TRUE`, invisibly, if logged in, or throws an error.
1415
#' @export
1516
#'
1617
#' @examples

R/rt_logout.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#' Note: restarting your R session will also log you out.
55
#'
66
#' @param ... Other arguments passed to \code{\link{rt_POST}}
7+
#
78
#' @return (rt_api) The parsed response from RT
89
#'
910
#' @export

R/rt_queue_properties.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#' @param queue (character) The queue
44
#' @param ... Other arguments passed to \code{\link{rt_GET}}
55
#'
6+
#' @return (list) A list of queue properties
7+
#'
68
#' @export
79
#'
810
#' @examples

R/rt_ticket_attachment.R

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,18 @@
77
#' @param attachment_id (numeric) The attachment identifier
88
#' @param ... Other arguments passed to \code{\link{rt_GET}}
99
#'
10+
#' @return (rt_api) An `rt_api` object with the response
11+
#'
1012
#' @export
1113
#'
1214
#' @examples
1315
#' \dontrun{
14-
#' rt_ticket_attachment(2, 1)
16+
#' # Before running rt_ticket_attachment, you'll probably want to get a list of
17+
#' # the attachments for a given ticket, like:
18+
#' attachments <- rt_ticket_attachments(1) # Ticket ID 1
19+
#'
20+
#' # And then you can get information about a specific attachment:
21+
#' rt_ticket_attachment(1, 3) # Attachment 3 on ticket 1
1522
#' }
1623
rt_ticket_attachment <- function(ticket_id,
1724
attachment_id,

R/rt_ticket_attachment_content.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
#' @inheritParams rt_ticket_attachment
99
#' @param ... Other arguments passed to \code{\link{rt_GET}}
1010
#'
11-
#' @return (response) A `response` object with the response
11+
#' @return (rt_api) An `rt_api` object with the response
12+
#'
1213
#' @export
1314
#'
1415
#' @examples

R/rt_ticket_history.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@
66
#' Defaults to \code{l}.
77
#' @param ... Other arguments passed to \code{\link{rt_GET}}
88
#'
9+
#' @return (rt_api) An `rt_api` object with the response
10+
#'
911
#' @export
1012
#'
1113
#' @examples
1214
#' \dontrun{
13-
#' # Get the full ticket history
15+
#' # Get the full ticket history for ticket 992
1416
#' rt_ticket_history(992)
1517
#'
16-
#' # Get just the ticket ID and subject
18+
#' # Get just the ticket ID and subject for ticket 992
1719
#' rt_ticket_history(992, format = "s")
1820
#' }
1921
rt_ticket_history <- function(ticket_id, format = "l", ...) {

R/rt_ticket_history_reply.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#'
1515
#' @examples
1616
#' \dontrun{
17+
#' # Reply to ticket 11 with a courteous message
1718
#' rt_ticket_history_reply(11,
1819
#' "Thank you.
1920
#'

R/rt_ticket_links.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@
88
#' @inheritParams rt_ticket_attachment
99
#' @param ... Other arguments passed to \code{\link{rt_GET}}
1010
#'
11+
#' @return (rt_api) An `rt_api` object with the response
12+
#'
1113
#' @export
1214
#'
1315
#' @examples
1416
#' \dontrun{
17+
#' # Assuming have a ticket with id 1007, we can get it links by calling
1518
#' rt_ticket_links(1007)
1619
#' }
1720
rt_ticket_links <- function(ticket_id, ...) {

R/rt_ticket_links_edit.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
#'
1515
#' @examples
1616
#' \dontrun{
17-
#' # Make ticket 20 depend on ticket 21
17+
#' # Assuming we have tickets 20 and 21, we can make ticket 20 depend on ticket
18+
#' # 21
1819
#' rt_ticket_links_edit(20, depends_on = 21)
1920
#' }
2021
#'

0 commit comments

Comments
 (0)