tests/testthat/test_cloudant.R

# Load the test authentication credentials
# Skip tests if this file is not available
try(
  source("test_auth.R")
)

test_that("There is a correct reponse from a couchdb server", {
  if (!exists("unauthorized_conn")) skip("skipping this")
  result <- couch_ping(unauthorized_conn)
  expect_equal(result$status_code, 200)
})

Try the couchDB package in your browser

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

couchDB documentation built on May 2, 2019, 4:09 a.m.