I simply need a R function like:
> la. <- function (envir = globalenv()) {ls(all = T, envir = envir) }`
with an active binding so I do need to type brackets
> makeActiveBinding('la', la., globalenv())
So that
> la
[1] "la" "la."
I now want to implement function la()
and it bind la
inside a package
So that when I load the package, la
is ready available.
How can I bind function la.()
to the symbol la
within the package environment?
What value shall I pass to the envir
argument of function makeActiveBinding()
Thanks for any help