tests/testthat/test-fetch.R

key = Sys.getenv("PREVEDERE_API_KEY")

skip_if_offline()
skip_on_cran()
skip_on_appveyor()

test_that("Fetch works", {

  expect_equal(
    prevedere_fetch(key,path = "test",payload = list(Echo = "teststring")),
    "teststring"
  )

})

Try the prevederer package in your browser

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

prevederer documentation built on July 23, 2019, 5:05 p.m.