Create a Slick
class object
Slick-class.Rd
The Slick
class is the main object class used in the Slick
package. It
contains sub-objects for the management procedures MPs()
, operating models OMs()
,
and the six chart types: Boxplot()
, Kobe()
, Quilt()
, Spider()
,
Timeseries()
, and Tradeoff()
, as well as metadata information for the Slick
object such as Title
, Author
, and Introduction
.
Usage
Slick(
Title = "",
Subtitle = "",
Date = Sys.Date(),
Author = "",
Email = "",
Institution = "",
Introduction = "",
MPs = NULL,
OMs = NULL,
Boxplot = NULL,
Kobe = NULL,
Quilt = NULL,
Spider = NULL,
Timeseries = NULL,
Tradeoff = NULL
)
Title(object, lang = "en", markdown = FALSE)
Title(object) <- value
Subtitle(object, lang = "en", markdown = FALSE)
Subtitle(object) <- value
Date(object)
Date(object) <- value
Author(object, markdown = FALSE)
Author(object) <- value
Email(object, markdown = FALSE)
Email(object) <- value
Institution(object, lang = "en", markdown = FALSE)
Institution(object) <- value
Introduction(object, lang = "en", markdown = FALSE)
Introduction(object) <- value
Arguments
- Title
Title for the
Slick
object. A character string. For multiple languages, use a named list with names:en
,es
,fr
for the three supported languages.- Subtitle
Subtitle for the
Slick
object. A character string or a named list with languages:en
,es
,fr
- Date
Date the Slick object was created. Text in format 'YYYY-MM-DD' or class
Date
e.g.,Sys.Date()
A character vector with Author(s) names. The length of the vector should equal the number of authors.
A character vector with email addresses for the author(s). Must be same length as
Author
. Can include Markdown.- Institution
A character vector with institution details for the author(s). Must be same length as
Author
. Can include Markdown.- Introduction
Introduction text for the
Slick
object. Supports all markdown formatting. Character string, must be length 1. For multiple languages, use a named list with names:en
,es
,fr
for the three supported languages.- MPs
An object of class
MPs-class()
- OMs
An object of class
OMs-class()
- Boxplot
An object of class
Boxplot-class()
- Kobe
An object of class
Kobe-class()
- Quilt
An object of class
Quilt-class()
- Spider
An object of class
Spider-class()
- Timeseries
An object of class
Timeseries-class()
- Tradeoff
An object of class
Tradeoff-class()
- object
A
Slick-class()
object- lang
Optional text string specifying the language (if available). Either 'en', 'es', or 'fr' for English, Spanish, or French respectively
- markdown
Logical. Process markdown?
- value
The value to assign to the object. See
Slots
for format of the relevant object class
Details
Objects of class Slick
are created with Slick()
.
Like all S4 objects in Slick
, slots in this object can be accessed and
assigned using functions corresponding to slot name. See Usage
and Functions
section.
Functions
Slick()
: Create aSlick-class()
objectTitle()
: AccessTitle
, Multi-language supportTitle(object) <- value
: AssignTitle
, Multi-language supportSubtitle()
: AccessSubtitle
, Multi-language supportSubtitle(object) <- value
: AssignSubtitle
, Multi-language supportDate()
: AccessDate
Date(object) <- value
: AssignDate
Author()
: AccessAuthor
Author(object) <- value
: AssignAuthor
Email()
: AccessEmail
Email(object) <- value
: AssignEmail
Institution()
: AccessInstitution
Institution(object) <- value
: AssignInstitution
Introduction()
: AccessIntroduction
Introduction(object) <- value
: AssignIntroduction
, can include Markdown. SeeExamples
Slots
Title
Title for the
Slick
object. A character string. For multiple languages, use a named list with names:en
,es
,fr
for the three supported languages.Subtitle
Subtitle for the
Slick
object. A character string or a named list with languages:en
,es
,fr
Date
Date the Slick object was created. Text in format 'YYYY-MM-DD' or class
Date
e.g.,Sys.Date()
Author
A character vector with Author(s) names. The length of the vector should equal the number of authors.
Email
A character vector with email addresses for the author(s). Must be same length as
Author
. Can include Markdown.Institution
A character vector with institution details for the author(s). Must be same length as
Author
. Can include Markdown.Introduction
Introduction text for the
Slick
object. Supports all markdown formatting. Character string, must be length 1. For multiple languages, use a named list with names:en
,es
,fr
for the three supported languages.MPs
An object of class
MPs-class()
OMs
An object of class
OMs-class()
Boxplot
An object of class
Boxplot-class()
Kobe
An object of class
Kobe-class()
Quilt
An object of class
Quilt-class()
Spider
An object of class
Spider-class()
Timeseries
An object of class
Timeseries-class()
Tradeoff
An object of class
Tradeoff-class()
See also
MPs()
, OMs()
, Boxplot()
, Kobe()
, Quilt()
,
Spider()
, Timeseries()
, Tradeoff()
, Check()
,
Title()
, Subtitle()
, Date()
, Author()
, Email()
,
Institution()
, Introduction()
Examples
# Assign values to a new `Slick` object
slick <- Slick()
Title(slick) <- 'An Example Slick Object'
Subtitle(slick) <- "[Created for the Developer's Guide](https://slick.bluematterscience.com/articles/DevelopersGuide.html)"
Date(slick) <- Sys.Date()
Author(slick) <- 'Adrian Hordyk'
Email(slick) <- "[mailto:adrian@bluematterscience.com](mailto:adrian@bluematterscience.com)"
Institution(slick) <- "[Blue Matter Science](bluematterscience.com)"
Introduction(slick) <- "This is the Introduction text"
# Access values from `Slick` object
Title(slick)
#> [1] "An Example Slick Object"
Subtitle(slick)
#> [1] "[Created for the Developer's Guide](https://slick.bluematterscience.com/articles/DevelopersGuide.html)"
Date(slick)
#> [1] "2024-11-05"
Author(slick)
#> [1] "Adrian Hordyk"
Email(slick)
#> [1] "[mailto:adrian@bluematterscience.com](mailto:adrian@bluematterscience.com)"
Institution(slick)
#> [1] "[Blue Matter Science](bluematterscience.com)"
Introduction(slick)
#> [1] "This is the Introduction text"
slick
#>
#> ── An empty object of class `Slick` ────────────────────────────────────────────
#>
#> ── `Title` ──
#>
#> An Example Slick Object
#>
#> ── `Subtitle` ──
#>
#> [Created for the Developer's Guide](http ...
#>
#> ── `Date` ──
#>
#> 2024-11-05
#>
#> ── `Author` ──
#>
#> 1 Adrian Hordyk
#>
#> ── `Email` ──
#>
#> 1 [mailto:adrian@bluematterscience.com](ma ...
#>
#> ── `Institution` ──
#>
#> 1 [Blue Matter Science](bluematterscience. ...
#>
#> ── `Introduction` ──
#>
#> This is the Introduction text
#>
#> ── `MPs` ──
#>
#> ℹ Object is empty
#>
#> ── `OMs` ──
#>
#> ℹ Object is empty
#>
#> ── `Boxplot` ──
#>
#> ℹ Object is empty
#>
#> ── `Quilt` ──
#>
#> ℹ Object is empty
#>
#> ── `Kobe` ──
#>
#> ℹ Object is empty
#>
#> ── `Spider` ──
#>
#> ℹ Object is empty
#>
#> ── `Timeseries` ──
#>
#> ℹ Object is empty
#>
#> ── `Tradeoff` ──
#>
#> ℹ Object is empty