inst/unitTests/test.response.R

test.response <- function()  {
  library(RUnit)
  library(AnalysisPageServer)

  resp <- new.response("hello", "text/plain")
  expected <- list(body="hello", content.type="text/plain", status=200, headers=character())
  class(expected) <- "AnalysisPageResponse"
  checkEquals(resp, expected)
  lives.ok(
           AnalysisPageServer:::.validate.response(resp)
           , "valid response")
}

Try the AnalysisPageServer package in your browser

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

AnalysisPageServer documentation built on April 28, 2020, 6:32 p.m.