Description Usage Arguments Value Examples
'add_page()
' creates a page and adds it to the i2dashboard object.
'remove_page()
' removes a page from the i2dashboard object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
dashboard |
A i2dashboard. |
... |
Additional arguments. |
page |
The name of the page to be added or removed. |
title |
The title of the page to be added. |
layout |
The page layout (see below). |
menu |
The name of the menu, under which the page should appear. |
sidebar |
A Markdown string. Preferably, use the function ' |
Returns the i2dashboard object with a modified 'pages' slot.
1 2 3 4 5 6 | i2dashboard() %>%
add_page(page="page1",
title="Page Title",
layout = "2x2_grid",
menu="Menu A") -> dashboard
dashboard %<>% remove_page(page="page1")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.