Description Usage Arguments Value Examples
Takes the head and body content of a polmeth page and renders the full standalone page either to the console or to a file. Also automagically adds class="active" for navbar elements.
1 2 | lsmapps_render(body_content, head_content = NULL,
file = "", make_active = "")
|
head_content |
tagList of content for the <head> of the page |
body_content |
tagList of content for the <body> of the page |
file |
passed directly to cat, for usage see
|
make_active |
name of the navbar element to mark as active, none if the empty string |
invisibly returns NULL
1 2 3 4 5 6 7 8 9 10 11 | # view generated html code
lsmapps_render(tags$h1("This is a testpage"),
tags$title("Testpage"))
lsmapps_render(tags$h1("This is a testpage"),
tags$title("Testpage"),
make_active="About")
## Not run: lsmapps_render(tags$h1("This is a testpage"),
tags$title("Testpage"),
file="testpage.html")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.