R/RC.R

Defines functions testRC

Documented in testRC

#' 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())
}
hadley/simpleS4 documentation built on May 17, 2019, 12:47 p.m.