save_html: Save an HTML object to a file

Description Usage Arguments

View source: R/html_print.R

Description

Save the specified HTML object to a file, copying all of it's dependencies to the directory specified via libdir.

Usage

1
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.

background

Background color for web page

libdir

Directory to copy dependencies to

lang

Value of the '<html>' 'lang' attribute


htmltools documentation built on Jan. 23, 2021, 1:06 a.m.