html_print: Implementation of the print method for HTML

Description Usage Arguments Value

View source: R/html_print.R

Description

Convenience method that provides an implementation of the base::print() method for HTML content.

Usage

1
2
3
4
5
html_print(
  html,
  background = "white",
  viewer = getOption("viewer", utils::browseURL)
)

Arguments

html

HTML content to print

background

Background color for web page

viewer

A function to be called with the URL or path to the generated HTML page. Can be NULL, in which case no viewer will be invoked.

Value

Invisibly returns the URL or path of the generated HTML page.


htmltools documentation built on Aug. 25, 2021, 5:07 p.m.