argonPage: Create a Boostrap 4 argon page

Description Usage Arguments Author(s) Examples

View source: R/argonPage.R

Description

Build an argon page

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
argonPage(
  ...,
  title = NULL,
  description = NULL,
  author = NULL,
  navbar = NULL,
  footer = NULL,
  favicon = NULL,
  analytics = NULL
)

Arguments

...

Body content

title

App title.

description

Purpose.

author

Author.

navbar

Navbar.

footer

Footer.

favicon

Website favicon. The png must be located in inst/images.

analytics

Website analytics such as Hotjar or google analytics. Must be wrapped in tagList or list. Moreover the script must be contained in a <script></script> tag: if it is not already the case, use tags$script.

Author(s)

David Granjon, dgranjon@ymail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
if(interactive()){
 library(argonR)
 argonPage(
  title = "ArgonR Static Template",
  author =  "Somebody",
  description = "HTML Static Template",
  navbar = argonNavbar(id = "navbar"),
  footer = argonFooter(),
  # main content
  argonSection(),
  argonSection(),
  argonSection(),
  argonSection(),
  argonSection()
 )
}

argonR documentation built on Dec. 1, 2019, 1:15 a.m.