I have built a package for shiny that allows the user to interact with reactive objects in their global environment. I think it's a game changer for troubleshooting. However, I know that CRAN will reject this due to the manipulation of the global environment. I see answers directing users to create a new environment but I don't see how to access the objects of that environment in the environment pane, I just see the environment name.
If I run something like this from this example: Global variable in a package - which approach is more recommended?
e <- new.env()
assign("a", "xyz123", envir = e)
e$b <- 1
I see this, and clicking on e
will call View(e)
I want e
to be something the user can see on the right-hand side like it is when the user is in their global environment or when debugging a function:
A similar question was asked here but did not address changing how the user sees objects in the IDE:
CRAN policy on use of global variables
This stuff is new territory so I hope my question makes sense.