R/app-get-all-values.R

Defines functions sd_getAllValues

# Note: This queries the server
sd_getAllValues <- function(self, private, input, output, export) {
  self$logEvent("Getting all values")
  "!DEBUG sd_getAllValues"

  url <- private$getTestSnapshotUrl(input, output, export, format = "rds")
  req <- httr_get(url)

  tmpfile <- tempfile()
  on.exit(unlink(tmpfile))
  writeBin(req$content, tmpfile)
  readRDS(tmpfile)
}

Try the shinytest package in your browser

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

shinytest documentation built on March 31, 2023, 11:09 p.m.