Skip to content

Commit 2a1ab63

Browse files
committed
better docs
1 parent 7b677e7 commit 2a1ab63

File tree

5 files changed

+16
-11
lines changed

5 files changed

+16
-11
lines changed

R/api.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#' @param status.handlers named list of specific HTTP statuses and a response
88
#' function to call in the case where that status is returned. Passed to the
99
#' [handleAPIresponse()] function.
10-
#' progress.handler an optional function that resolves errors raised
10+
#' @param progress.handler an optional function that resolves errors raised
1111
#' during an async request. Passed to the [`pollProgress()`] function.
1212
#' @keywords internal
1313
crunchAPI <- function(http.verb, url, config = list(), status.handlers = list(), progress.handler = NULL, ...) {
@@ -57,8 +57,9 @@ crDELETE <- function(...) crunchAPI("DELETE", ...)
5757
#' Do the right thing with the HTTP response
5858
#' @param response an httr response object
5959
#' @param special.statuses an optional named list of functions by status code.
60-
#' @param progress.handler an optional function that resolves errors raised
61-
#' during an async request
60+
#' @param progress.handler an optional function to handle errors reported by
61+
#' a progress result. Default NULL prints the string `message`; other
62+
#' functions required to handle non-string messages in progress responses.
6263
#' @return The full HTTP response object, just the content, or any other
6364
#' status-specific action
6465
#' @importFrom httr content http_status

R/automation.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,9 @@ setMethod("scriptSavepoint", "Script", function(x) {
102102
#' @param is_file The default guesses whether a file or string was
103103
#' used in the `script` argument, but you can override the heuristics
104104
#' by specifying `TRUE` for a file, and `FALSE` for a string.
105-
#' @param encoding The encoding the script file is saved as on your
106-
#' machine. Defaults to UTF-8.
105+
#' @param encoding Optional encoding to convert **from**, defaults to UTF-8.
106+
#' The API accepts only UTF-8, so all text will be converted to UTF-8 before
107+
#' being sent to the server.
107108
#' @param ... Additional options, such as `dry_run = TRUE` passed on
108109
#' to the API
109110
#'

man/crunchAPI.Rd

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/handleAPIresponse.Rd

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/runCrunchAutomation.Rd

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)