save_html: Save an HTML object to a file

View source: R/html_print.R

save_htmlR Documentation

Save an HTML object to a file

Description

An S3 generic method for saving an HTML-like object to a file. The default method copies dependency files to the directory specified via libdir.

Usage

save_html(html, file, ...)

## Default S3 method:
save_html(html, file, background = "white", libdir = "lib", lang = "en", ...)

Arguments

html

HTML content to print.

file

File path or connection. If a file path containing a sub-directory, the sub-directory must already exist.

...

Further arguments passed to other methods.

background

Background color for web page.

libdir

Directory to copy dependencies to.

lang

Value of the ⁠<html>⁠ lang attribute.


htmltools documentation built on May 29, 2024, 5:19 a.m.