tests/testthat/test-http-rcurl.R

test_that("basic HTTP methods work", {
  skip_if_not_installed("RCurl")
  withr::local_options(rsconnect.http = "rcurl", 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 Oct. 4, 2023, 5:07 p.m.