#' This is an RC class B.
#'
#' @import methods
#' @export
#' @export B
#' @examples
#' print(new("B"))
B <- setRefClass("B", methods = list(
show = function(x) cat("Hi!\n")
)
)
#' A simple test function
#'
#' @export
testRC <- function() {
print(new("B"))
print(B$new())
print(B())
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.