Skip to contents

Produces a shareable, self-contained report. HTML output embeds its own CSS and needs no other software to view.

Usage

render_report(
  x,
  output_file = NULL,
  format = c("html", "md"),
  title = "Retraction report",
  open = FALSE
)

Arguments

x

A retraction_result.

output_file

Output path. When NULL, a temporary file is used.

format

"html" (default) or "md".

title

Report title.

open

Open the report in a browser (interactive HTML only).

Value

Invisibly, the path to the written report.

Examples

# \donttest{
res <- check_dois("10.1016/S0140-6736(97)11096-0")
report <- render_report(res, tempfile(fileext = ".html"))
# }