tests/testthat/test-getrealtimereport.R

test_that("Validate SaveRealTimeSettings using legacy credentials", {
  
  skip_on_cran()
  
  SCAuth(Sys.getenv("USER", ""), Sys.getenv("SECRET", ""))
  
  #Create full suite of tests once Issue #76 fixed
  aa <- GetRealTimeReport("zwitchdev", "pageviews")
  
  #Check that returned value is a data.frame
  expect_is(aa, "data.frame")
  
})

Try the RSiteCatalyst package in your browser

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

RSiteCatalyst documentation built on Nov. 6, 2019, 5:09 p.m.