powered by
'add_page()' creates a page and adds it to the i2dashboard object. 'remove_page()' removes a page from the i2dashboard object.
add_page()
remove_page()
add_page(dashboard, ...)remove_page(dashboard, page)# S4 method for i2dashboard add_page( dashboard, page, title, layout = "default", menu = NULL, sidebar = NULL, ... )# S4 method for i2dashboard remove_page(dashboard, page)
remove_page(dashboard, page)
# S4 method for i2dashboard add_page( dashboard, page, title, layout = "default", menu = NULL, sidebar = NULL, ... )
# S4 method for i2dashboard remove_page(dashboard, page)
Returns the i2dashboard object with a modified 'pages' slot.
A i2dashboard.
Additional arguments.
The name of the page to be added or removed.
The title of the page to be added.
The page layout (see below).
The name of the menu, under which the page should appear.
A Markdown string. Preferably, use the function 'add_to_sidebar()'.
add_to_sidebar()
i2dashboard() %>% add_page(page="page1", title="Page Title", layout = "2x2_grid", menu="Menu A") -> dashboard dashboard %<>% remove_page(page="page1")
Run the code above in your browser using DataLab