Skip to content

Commit

Permalink
Merge branch 'main' into httr2
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Feb 4, 2024
2 parents a527d82 + ef700e5 commit 916fc4b
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 67 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ Remotes: ropensci/webmockr@httr2
X-schema.org-applicationCategory: Web
X-schema.org-keywords: http, https, API, web-services, curl, mock, mocking, http-mocking, testing, testing-tools, tdd
X-schema.org-isPartOf: https://ropensci.org
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
3 changes: 2 additions & 1 deletion R/errors.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#' - but if record != once, then allow it, unless record == none
#' - others?
#'
#' @examples
#' @examples \dontrun{
#' vcr_configure(dir = tempdir())
#' cassettes()
#' insert_cassette("turtle")
Expand Down Expand Up @@ -53,6 +53,7 @@
#' # cleanup
#' eject_cassette("turtle")
#' unlink(tempdir())
#' }
UnhandledHTTPRequestError <- R6::R6Class(
"UnhandledHTTPRequestError",
public = list(
Expand Down
19 changes: 6 additions & 13 deletions R/vcr-package.R
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
#' vcr: Record HTTP Calls to Disk
#'
#' \pkg{vcr} records test suite 'HTTP' requests and replay them during
#' future runs.
#'
#' Check out the [http testing book](https://books.ropensci.org/http-testing/)
#' for a lot more documentation on `vcr`, `webmockr`, and `crul`
#'
#' @section Backstory:
#' A Ruby gem of the same name (`VCR`, <https://github.com/vcr/vcr>) was
#' created many years ago and is the original. Ports in many languages
Expand All @@ -29,7 +21,11 @@
#'
#' @section Request matching:
#' See [request-matching] for help on the many request matching options.
#'
#'
#' @keywords internal
"_PACKAGE"

## usethis namespace: start
#' @importFrom R6 R6Class
#' @importFrom utils getParseData
#' @importFrom yaml yaml.load yaml.load_file as.yaml
Expand All @@ -39,10 +35,7 @@
#' @importFrom httr http_status content
#' @importFrom httr2 resp_status_desc req_perform
#' @importFrom webmockr pluck_body
#' @author Scott Chamberlain
#' @docType package
#' @aliases vcr-package
#' @name vcr
## usethis namespace: end
NULL

#' An HTTP request as prepared by the \pkg{crul} package
Expand Down
2 changes: 2 additions & 0 deletions man/UnhandledHTTPRequestError.Rd

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

69 changes: 69 additions & 0 deletions man/vcr-package.Rd

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

52 changes: 0 additions & 52 deletions man/vcr.Rd

This file was deleted.

0 comments on commit 916fc4b

Please sign in to comment.