showEnv <- function(x){ if(!is.environment(x)) x <- as.environment(x) if(is.null(attr(x, "name"))) print(x) else message("") invisible(x) }