R/RC.R

Defines functions replacements_RC

replacements_RC <- function(env) {
  pat <- paste0("^", classMetaName(""))
  unlist(recursive = FALSE, lapply(ls(env, pattern = pat, all.names = TRUE),
    function(name) {
      class <- get(name, env)
      if (extends(class, "envRefClass")) {
       lapply(ls(class@refMethods, all.names = TRUE), replacement, env = class@refMethods)
      }
    }))
}
r-lib/covr documentation built on Nov. 5, 2018, 11:40 p.m.