R/call_chunk_reactval.R

#' @description
#' Extracting the contents of the `reactiveVal` in a human-readable way
#'
#' @noRd
S7::method(repro_call_chunk, class_call_reactval) <- function(x, repro_code = Repro(), env = rlang::caller_env()) {
  reactive_val <- construct_reactive(x, env = env)
  eval_call <- str2lang(paste(rlang::call_name(x), "<-", reactive_val))

  repro_code@packages <- get_pkg_name(x)
  repro_code@code <- eval_call
  repro_code
}

Try the shinyreprex package in your browser

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

shinyreprex documentation built on April 27, 2026, 9:10 a.m.