Skip to content

Commit

Permalink
Added better documentation for the return value of handle_response
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasPietzschmann committed Sep 5, 2024
1 parent b8d2be3 commit acfbe6c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ get_filetoken <- function(filepath = rlang::missing_arg(), content = rlang::miss
#' @param res The response to handle
#'
#' @return A list with either the error's reason or the complete response
#' \describe{
#' \item{id}{The ID of the response (only in case of success).}
#' \item{res}{The complete response object (only in case of success).}
#' }
#' or
#' \describe{
#' \item{error}{The reason for the error (only present in case of an error).}
#' }
#'
#' @seealso [send_request()]
handle_response <- function(res) {
Expand Down
8 changes: 8 additions & 0 deletions man/handle_response.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit acfbe6c

Please sign in to comment.