tests/testthat/helper.R

make_clean_snapshot <- function(x) {
  # Remove some embedded environments (or rename them) since their fomatted
  # names will not be the same from run-to-run.
  x <- x$x
  x$attrs <- NULL
  x$visdat <- NULL
  x$layoutAttrs <- NULL
  x$cur_data <- "env-name"
  plotly::plotly_json(x, jsonedit = FALSE)
}

Try the shinymodels package in your browser

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

shinymodels documentation built on Nov. 18, 2021, 1:12 a.m.