tests/testthat/test-http-curl.R

test_that("basic HTTP methods work", {
  skip_if(Sys.which("curl") == "")
  skip_if_not_installed("webfakes")

  withr::local_options(rsconnect.http = "curl", lifecycle_verbosity = "quiet")

  test_http_GET()
  test_http_POST_JSON()
  test_http_POST_empty()
  test_http_POST_file()
  test_http_headers()
})

Try the rsconnect package in your browser

Any scripts or data that you put into this service are public.

rsconnect documentation built on June 22, 2024, 10:26 a.m.