I have created a simple environment in R with two simple function,
AnEnv <- new.env()
AnEnv$mod <- function(a, b) a%%b
AnEnv$pwr <- function(a, b) a^b
Whenever I type AnEnv
in R-console, it returns something like <environment: 0x7f7f6fe3d4f0>
. Is there a why this behaviour can be changed. For example, when I type AnEnv
it returns the results from ls(env = AnEnv)
or ls.str(env = AnEnv)
.
Perhaps you want something like this: