in R base:
conflicts(detail=TRUE)
And to find the list of environments that contain a version of
getAnywhere(x = "functionA")
Note: getAnywhere
also finds the functions which are not exported. and that are hence not creating conflicts.
A better (simpler) result could be obtained using:
x = "functionA"
names(which(sapply(search(), FUN = function(env) exists(x, env, inherits = FALSE, mode = "function"))))
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…