Learn R Programming

argonR (version 0.2.0)

argonPageTemplate: Create an HTML version of the argonPage

Description

Create an HTML version of the argonPage

Usage

argonPageTemplate(filename = "index", path = getwd(), argonPage, view = TRUE)

Arguments

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.

Examples

Run this code
# NOT RUN {
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)
 
}

# }

Run the code above in your browser using DataLab