start_page: Create a page object

Description Usage Examples

View source: R/start_page.R

Description

Create an HTML page object, which can be passed to other builder functions. This starts a page with the necessary components.

Usage

1

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# Start building an HTML page with the
# `start_page()` function
page <- start_page()

# The page is a simple list object
page

# The page can be viewed in RStudio
# with the `show_in_viewer()` function,
# but, let's add some viewable content
# first with `p_()`:
page %>%
  p_("**Hello!** This is just text.") %>%
  show_in_viewer()

rich-iannone/hyper documentation built on May 16, 2018, 11:24 a.m.