R/print.R

Defines functions print.mongopipe

#' @importFrom jsonlite toJSON
#' @export
print.mongopipe <- function(x, pretty = 2, ...) {
  y <- toJSON(attr(x, "pipe"), pretty = pretty)
  cat(y)
  invisible(x)
}

Try the mongopipe package in your browser

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

mongopipe documentation built on Jan. 20, 2021, 5:08 p.m.