On Mon, 27 Dec 2021 14:06:49 +0100 Grzegorz Smoliński <[email protected]> wrote:
> I know it is possible to find the environment in which some object > lives using the 'environment()' function That's not exactly what environment() does. This function returns the environment belonging to a function (where it searches for its variables), not where it's defined. A function may have many names, but only one "own" environment (plus its parent, plus the parent's parent and so on). You'll need to modify some other environment, where the function actually lives, to make this work. Is the shiny app a package? Perhaps trace() could help you? Modifying package environments is even trickier. -- Best regards, Ivan ______________________________________________ [email protected] mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

