Description Usage Arguments Note Author(s) Examples
Create an HTML version of the argonPage
1 | argonPageTemplate(filename = "index", path = getwd(), argonPage, view = TRUE)
|
filename |
HTML filename for instance, index.html. |
path |
Where to store the saved file. By default, getwd(). |
argonPage |
Slot for argonPage. |
view |
Whether to preview the page in a web browser. TRUE by default. |
Do not forget to copy the inst folder of the package to the root of your website folder.
David Granjon, dgranjon@ymail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | if(interactive()){
library(argonR)
# generate the page
example <- argonPage(
title = "ArgonR Static Template",
author = "Somebody",
description = "HTML Static Template",
navbar = argonNavbar(id = "navbar"),
footer = argonFooter(),
# main content
argonSection(),
argonSection(),
argonSection(),
argonSection(),
argonSection()
)
# create the path
path <- getwd()
# generate the static page
argonPageTemplate(filename = "example", path = path, argonPage = example)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.