tests/testthat/test-getpreviousservercalls.R

# test_that("Validate GetPreviousServerCalls using legacy credentials", {
#
#   skip_on_cran()
#
#   #Correct [masked] credentials
#   SCAuth(Sys.getenv("USER", ""), Sys.getenv("SECRET", ""))
#
#   gpsc <- GetPreviousServerCalls("zwitchdev")
#   gpsc2 <- GetPreviousServerCalls(c("zwitchdev"))
#   gpsc3 <- GetPreviousServerCalls(c("zwitchdev", "zwitchjulia"))
#
#   #Validate returned value is a data.frame
#   expect_is(gpsc, "data.frame")
#   expect_is(gpsc2, "data.frame")
#   expect_is(gpsc3, "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.