You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Idea: ability to browse into the app at its current state #26
This is something that wouldn't have been possible a month ago, but with shiny's new state features, I think this could is achievable.
When I have an error in my app, I want to dig deeper and see what's happening, and so far I've noticed I often use the take_screenshot() function as a debugging tool. But an even better option would be to be able to open up the app in its current state in a browser so I can see what is really going on.
This could be a bit weird to implement, especially because the state functionality of shiny currently requires you to declare ahead of time that you want to enable state, and it might interfere with the state saving functionality of a shiny app that already supports it. It's definitely prone to a lot of weirdnesses. But could be a nice idea to think about.
I think the way the statesaving feature currently works is that the enablebookmarking function makes some global variable set, so before injecting, we could check if that variable is already set or not. There's going to be some issues to think about, but I'm glad you're onboard, browse is going to be a very powerful tool. And it's ok if it doesn't work for ALL apps because it's a convenience feature, it's not a testing function
Activity
gaborcsardi commentedon Sep 16, 2016
Definitely sg to think about. I also think that the snapshot feature can be useful for the tests, I am just not sure how. An initial idea:
shinyapp$new(), every time.app$browse()method thatMy only worry for this is that the snapshotting feature does not work for all apps. But there is not much we can do about that....
daattali commentedon Sep 16, 2016
Yeah, that's exactly what I was thinking.
I think the way the statesaving feature currently works is that the
enablebookmarkingfunction makes some global variable set, so before injecting, we could check if that variable is already set or not. There's going to be some issues to think about, but I'm glad you're onboard, browse is going to be a very powerful tool. And it's ok if it doesn't work for ALL apps because it's a convenience feature, it's not a testing functiondaattali commentedon Aug 5, 2017
Closing as I already opened a newer issue for this