tests/testthat/test-getelements_dw.R

test_that("Validate GetElements using legacy credentials", {
  
  skip_on_cran()
  
  #Correct [masked] credentials
  SCAuth(Sys.getenv("USER", ""), Sys.getenv("SECRET", ""))
  
  elem <- GetElements("zwitchdev", report.type='warehouse')
  
  #Validate returned value is a data.frame
  expect_is(elem, "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 July 22, 2017, 1:01 a.m.