Learn R Programming

htmltools (version 0.5.9)

Tools for HTML

Description

Tools for HTML generation and output.

Copy Link

Version

Install

install.packages('htmltools')

Monthly Downloads

1,151,443

Version

0.5.9

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Carson Sievert

Last Published

December 4th, 2025

Functions in htmltools (0.5.9)

print.shiny.tag

Print method for HTML/tags
include

Include Content From a File
renderTags

Render tags into HTML
singleton

Include content only once
singleton_tools

Singleton manipulation functions
htmlDependencies

HTML dependency metadata
htmlDependency

Define an HTML dependency
tagFunction

Tag function
tagAppendChild

Modify tag contents
parseCssColors

Parse CSS color strings
plotTag

Capture a plot as a self-contained <img> tag
subtractDependencies

Subtract dependencies
suppressDependencies

Suppress web dependencies
tagQuery

Query and modify HTML tags
tagList

Create a list of tags
tagAddRenderHook

Modify a tag prior to rendering
tagAppendAttributes

Append tag attributes
renderDependencies

Create HTML for dependencies
withTags

Evaluate an expression using tags
save_html

Save an HTML object to a file
validateCssUnit

Validate proper CSS formatting of a unit
urlEncodePath

Encode a URL path
browsable

Make an HTML object browsable
findDependencies

Collect attached dependencies from HTML tag object
defaultPngDevice

Determine the best PNG device for your system
css

CSS string helper
as.tags

Convert a value to tags
capturePlot

Capture a plot as a saved file
bindFillRole

Allow tags to intelligently fill their container
copyDependencyToDir

Copy an HTML dependency to a directory
builder

Create HTML tags
HTML

Mark Characters as HTML
htmlTemplate

Process an HTML template
html_print

Implementation of the print method for HTML
htmlPreserve

Preserve HTML regions
htmlEscape

Escape HTML entities
htmltools-package

htmltools: Tools for HTML
makeDependencyRelative

Make an absolute dependency relative
knitr_methods

Knitr S3 methods
resolveDependencies

Resolve a list of dependencies
renderDocument

Render an html_document object