Method new()
Initialize an LTO theme.
Usage
Theme$new(theme_name)
Arguments
theme_name
A length-one character vector corresponding to an LTO
theme name.
Returns
A new Theme
object.
Method theme_name()
return A length-one character vector corresponding to the theme name.
Method aliases()
return A tibble of theme name aliases.
Method description()
return A length-one character vector corresponding to the theme
description.
Usage
Theme$description()
Method notes()
return A tibble of caveats that accompany that theme description. This
is empty for the vast majority of themes.
Method references()
return A tibble of references.
Method examples()
return A tibble of example usages of the theme, if any.
Method parents()
return A tibble of the theme's parent theme names.
Method ancestors()
return A tibble of the theme's ancestor theme names.
Method annotations()
return A tibble with one row for each story in which the theme is
featured. The first column is the LTO story ID, the second is the
release data, the third is the level (choice/major/minor) at which
the theme is featured, and the fourth a justification for applying
the theme. Each column is of type character.
Usage
Theme$annotations()
Print theme object info to console.
Usage
Theme$print(canonical = FALSE, width = NULL, ...)
Arguments
canonical
Set to FALSE for pretty output.
width
Width of text output to generate. This defaults to NULL,
which means the stoRy_opt("width")
value is used. Run
options(stoRy.width = 120L)
to change the column width to be 120
characters, etc.
...
Additional arguments.
Method clone()
The objects of this class are cloneable with this method.
Usage
Theme$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.