tests/testthat/test-task.R

without_internet({
  test_that("Query params to get task", {
    con <- Connect$new(server = "https://connect.example", api_key = "fake")
    expect_GET(
      con$task("asdf"),
      "https://connect.example/__api__/v1/tasks/asdf?first=0&wait=5"
    )
  })
})

Try the connectapi package in your browser

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

connectapi documentation built on Sept. 11, 2024, 9:34 p.m.