tests/testthat/test-buildrealtimereportstructure.R

test_that("Validate BuildRealTimeReportStructure using legacy credentials", {
  
  skip_on_cran()
  
  #Correct [masked] credentials
  SCAuth(Sys.getenv("USER", ""), Sys.getenv("SECRET", ""))
  
  aa <- BuildRealTimeReportStructure(report.name="test123",
                                     metric="instances",
                                     elements = c("prop2", "searchenginekeyword", "geocountry"))
  
  
  #Validate returned value is a data.frame
  expect_is(aa, "list")
  
})

Try the RSiteCatalyst package in your browser

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

RSiteCatalyst documentation built on July 22, 2017, 1:01 a.m.