tests/testthat/test_connection.R

library(testthat)

test_that("malformend_connection_string", {
  expect_error(atlas::atlas.connect("xxx"), "Could not connect to ATLAS instance");
})

Try the atlas package in your browser

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

atlas documentation built on May 2, 2019, 5:07 a.m.