R/getMethods.R

Defines functions .getMethods

.getMethods <- function(class, scope, exclude) {

  stopifnot(inherits(class,"R6ClassGenerator"))

  public = active = list()

  if("public" %in% scope)
    public = class$public_methods[!(names(class$public_methods) %in% c("initialize","clone", exclude))]
  if("active" %in% scope)
    active = class$active[!(names(class$active) %in% exclude)]

  data.table::data.table(Name = names(c(public, active)), Functions = c(public, active), Scope = c(rep("public",length(public)),rep("active",length(active))))
}

Try the R62S3 package in your browser

Any scripts or data that you put into this service are public.

R62S3 documentation built on March 13, 2020, 3:29 a.m.