#' @title An Abstract Class for Methods
#'
#' @import R6
#' @author Dongjie Wu
#'
#' @description An abstract class for methods which cannot be initialized.
#'
#' @name AbstractMethod
#'
#' @return No return.
AbstractMethod <- R6Class("AbstractMethod",
public = list(
#' @description
#' The initialize function for the AbstractMethod class:
#' This abstract class cannot be initialized
#' @return The function will return an error.
initialize = function() {
stop("This is an abstract class that can't be initialized.")
},
#' @description
#' The fit function for the AbstractMethod class:
#' This abstract class cannot be initialized
#' @return The function will return an error.
fit = function() {
stop("This is an abstract class that can't be initialized.")
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.