Skip to content

Commit

Permalink
better docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gergness committed May 12, 2021
1 parent 7b677e7 commit 2a1ab63
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 deletions.
7 changes: 4 additions & 3 deletions R/api.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#' @param status.handlers named list of specific HTTP statuses and a response
#' function to call in the case where that status is returned. Passed to the
#' [handleAPIresponse()] function.
#' progress.handler an optional function that resolves errors raised
#' @param progress.handler an optional function that resolves errors raised
#' during an async request. Passed to the [`pollProgress()`] function.
#' @keywords internal
crunchAPI <- function(http.verb, url, config = list(), status.handlers = list(), progress.handler = NULL, ...) {
Expand Down Expand Up @@ -57,8 +57,9 @@ crDELETE <- function(...) crunchAPI("DELETE", ...)
#' Do the right thing with the HTTP response
#' @param response an httr response object
#' @param special.statuses an optional named list of functions by status code.
#' @param progress.handler an optional function that resolves errors raised
#' during an async request
#' @param progress.handler an optional function to handle errors reported by
#' a progress result. Default NULL prints the string `message`; other
#' functions required to handle non-string messages in progress responses.
#' @return The full HTTP response object, just the content, or any other
#' status-specific action
#' @importFrom httr content http_status
Expand Down
5 changes: 3 additions & 2 deletions R/automation.R
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,9 @@ setMethod("scriptSavepoint", "Script", function(x) {
#' @param is_file The default guesses whether a file or string was
#' used in the `script` argument, but you can override the heuristics
#' by specifying `TRUE` for a file, and `FALSE` for a string.
#' @param encoding The encoding the script file is saved as on your
#' machine. Defaults to UTF-8.
#' @param encoding Optional encoding to convert **from**, defaults to UTF-8.
#' The API accepts only UTF-8, so all text will be converted to UTF-8 before
#' being sent to the server.
#' @param ... Additional options, such as `dry_run = TRUE` passed on
#' to the API
#'
Expand Down
5 changes: 3 additions & 2 deletions man/crunchAPI.Rd

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

5 changes: 3 additions & 2 deletions man/handleAPIresponse.Rd

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

5 changes: 3 additions & 2 deletions man/runCrunchAutomation.Rd

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

0 comments on commit 2a1ab63

Please sign in to comment.