Algorithm <- setClass("Algorithm", slots = list(name = "character", parameters = "list"), prototype = list(
name = "not available",
parameters = list()
))
AlgorithmSpace <- setClass("AlgorithmSpace",
slots = list(algorithms = "list"), prototype = list(algorithms = list()),
validity = function(object) {
object@algorithms %>%
purrr::map(class) %>%
purrr::every(~ .x == "Algorithm")
}
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.