Create an HTML version of the argonPage
argonPageTemplate(filename = "index", path = getwd(), argonPage, view = TRUE)
HTML filename for instance, index.html.
Where to store the saved file. By default, getwd().
Slot for argonPage.
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.
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)
}