View source: R/S03_Utilities.R
templates | R Documentation |
Outputs a template of common annotations and code segments to the console for easy copying and pasting.
templates(type = NULL, val = NULL)
type |
The type of template to return, with options for...
|
val |
An optional character vector to be used
with |
# List of possible inputs to argument
# 'type' for each template
templates()
# Function documentation
templates("Function")
# Header for R script
templates("Header")
# Package version
templates("Package", "stats")
# Progress bar for loop
templates("Progress")
# Loop
templates("Loop")
# If ... else statement
templates("Conditional")
# Roxygen2 function documentation
templates("roxygen")
# HTML internal links
templates("html_links")
# Example table for specifying
# nomenclature and a glossary
# in a .Rmd file
templates("rmd_glossary")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.