
The stoRy package uses the theme
object to store
information about themes in the package theme dataset.
new()
theme$new(theme)
theme
A string representing a theme in the dataset.
print()
theme$print(...)
clone()
The objects of this class are cloneable with this method.
theme$clone(deep = FALSE)
deep
Whether to make a deep clone.
# NOT RUN {
########################################################################
# Create a theme object for the theme "utopia" and print the result #
########################################################################
theme_name <- "utopia"
mytheme <- theme$new(theme_name)
mytheme$print()
########################################################################
# Display the "utopia" theme and its descendent themes in tree format #
########################################################################
print_tree(mytheme)
########################################################################
# Display the "society" theme hierarchy in tree format #
########################################################################
theme_name <- "society"
mytheme <- theme$new(theme_name)
print_tree(mytheme, pruneMethod = "dist", limit = 50)
# }
Run the code above in your browser using DataLab