functionsCanGetGeneric: non-generic functions that can generate generic using...

View source: R/functionsCanGetGeneric.R

functionsCanGetGenericR Documentation

non-generic functions that can generate generic using "getGeneric"

Description

non-generic functions that can generate generic using "getGeneric"

Usage

functionsCanGetGeneric(package, env = as.environment("package:base"))

Arguments

package

package name.

envir

environment, which can transformed using an attached package name. default is as.environment("package:base")

Value

the name of non-generic functions that can generate generic functions using getGeneric function.

Examples

## Not run: 
functionsCanGetGeneric()
functionsCanGetGeneric(as.environment("package:methods"))

# In all attached packages
lapply(setNames(rev(search()), rev(search())), function (x){
       functionsCanGetGeneric(as.environment(x))})
       
c("cov") %in% functionsCanGetGeneric(env = as.environment("package:stats"))
c("which.min", "which") %in% functionsCanGetGeneric()

## End(Not run)

paodan/funcTools documentation built on April 1, 2024, 12:01 a.m.