R/plot_return.R

Defines functions print.fect_plot_return

print.fect_plot_return <- function(x, ...) {
  # When return.data=TRUE we return a list; printing it should behave like a plot:
  # draw the figure, but don't dump $data to console.
  if (!is.null(x$p)) {
    suppressWarnings(print(x$p))
  }
  invisible(x)
}

Try the fect package in your browser

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

fect documentation built on April 30, 2026, 9:06 a.m.