View source: R/openingDetails.R
openingDetails | R Documentation |
Report opening details about the book, to be executed as an R expression in the Date:
field.
openingDetails(..., Copyright = NULL)
... |
Further named strings to be included in the opening details. |
Copyright |
String containing copyright information; defaults to |
It is usually sufficient to set something like
date: "`r rebook::openingDetails()`"
in the YAML header of the book, thereby ensuring that the book details are printed after the title but before any contents. This assumes that none of the details have problematic characters, particularly double quotes.
Details are extracted from a DESCRIPTION
file in the current or any parent directory.
This assumes that authors are formatted as Authors@R
and the License
and Date
fields are specified.
A string containing the formatted details for inclusion into a YAML header.
Aaron Lun
wd <- getwd()
setwd(system.file(package="rebook"))
cat(openingDetails(), '\n')
setwd(wd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.