tests/testthat/test-set_server.R

test_that("Switching Servers works between local, dev and neotoma.", {
  set_server("dev")
  expect_true(Sys.getenv("APIPOINT") == "dev")
  set_server("local")
  expect_true(Sys.getenv("APIPOINT") == "local")
  set_server("neotoma")
  expect_true(Sys.getenv("APIPOINT") == "neotoma")
})

Try the neotoma2 package in your browser

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

neotoma2 documentation built on May 29, 2024, 6:21 a.m.