
The stoRy package uses the storysets
object
to store lists of story IDs.
Each storysets object has the following five fields
A string specifying the name of an .smt format storysets file. See examples.
A vector of storyset names.
A vector of comments describing the storysets.
The number of storysets in the .smt file.
A list of vectors containing the storyset story IDs.
new()
storysets$new(file)
print()
storysets$print(...)
clone()
The objects of this class are cloneable with this method.
storysets$clone(deep = FALSE)
deep
Whether to make a deep clone.
# NOT RUN {
#######################################################################
# List all storysets files available in the \pkg{stoRy} package #
#######################################################################
list.files(system.file("storysets", package = "stoRy"))
#######################################################################
# Load the Star Trek aliens storysets smt file and storysets object #
#######################################################################
file <- system.file("storysets", "aliens.smt", package = "stoRy")
mystorysets <- storysets$new(file)
print(mystorysets)
# }
Run the code above in your browser using DataLab