FrontMatter | R Documentation |
This function is used to create a string of information regarding the R/Rstudio version and R package details used for an analysis for printing in documents. The returned string includes newline characters so requires cat() to display properly.
FrontMatter(packages = NULL, rstudio = NULL)
packages |
Vector of packages we want to display. Default is NULL saying we don't want to return any package information. Otherwise it can be "all" to display information for all packages loaded. |
rstudio |
String specifying Rstudio version used. Default is NULL. |
A string with the front matter information. By default returns R version and time.
Richard T Gray, Rgray@kirby.unsw.edu.au
FrontMatter()
FrontMatter("ggplot2")
FrontMatter(packages = "all", rstudio = "1.1.423")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.