R/process_value.R

Defines functions process_value

process_value <- function(x, ...) {
  if ("ggplot" %in% class(x)) {
    x <- neptune_file_as_image(x, ...)
  }
  if ("plotly" %in% class(x)) {
    x <- neptune_file_as_html(x, ...)
  }
  x
}

Try the neptune package in your browser

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

neptune documentation built on April 13, 2022, 5:14 p.m.