pkgdown_print: Print object in pkgdown output

View source: R/pkgdown_print.R

pkgdown_printR Documentation

Print object in pkgdown output

Description

This lets package authors control how objects are printed just for pkgdown examples. The default is to call print() apart from htmlwidgets where the object is returned as is (with sizes tweaked).

Usage

pkgdown_print(x, visible = TRUE)

Arguments

x

Object to display

visible

Whether it is visible or not

Value

Either a character vector representing printed output (which will be escaped for HTML as necessary) or literal HTML produced by the htmltools or htmlwidgets packages.


pkgdown documentation built on Dec. 28, 2022, 1:37 a.m.