Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

save_html

Save an HTML object to a file


Description

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

Usage

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

Tools for HTML

v0.5.1.1
GPL (>= 2)
Authors
Joe Cheng [aut], Carson Sievert [aut, cre] (<https://orcid.org/0000-0002-4958-2844>), Winston Chang [aut], Yihui Xie [aut], Jeff Allen [aut], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.