aoles / shinyURL

:link: Save and restore the state of Shiny app's widgets by encoding them in an URL query string
81 stars 21 forks source link

Usage of app in practice #4

Open pssguy opened 8 years ago

pssguy commented 8 years ago

Just tried this out for first time on one of my apps and works fine but have few comments

I suppose it would sometimes be useful to view the full URL, but only as an option (perhaps with default=TRUE) The circumstances I would want to use this would include on twitter so a button which opens a tweet with the tinyurl shown would be an interesting enhancement Another circumstance I can envisage is that a user would always want to go to some defaults of that app. So a swift way of bookmarking would also be useful

aoles commented 8 years ago

Hi Andrew, thanks for giving shinyURL a try and for your feedback. By the way, your Climate app is quite impressive, I like it a lot - well done!

What exactly do you mean by view the full URL? The text field rendered by shinyURL.ui contains the complete URL. But you're right that it typically doesn't fit into the field itself. But it can be still scrolled by setting the focus on the text field and moving the cursor, or the whole string can be selected by the usual CTRL+A keyboard shortcut. There is a certain tradeoff between displaying the URL, and making the widget compact, but I realize that sometimes it's desired to display the URL in its "full glory". If this is the case, you are welcome to make advantage of the new functionality introduced in version 0.0.30 which provides direct access to the reactive expression evaluating to the app's URL. This allows you to customize the way the URL is presented to the user. For an illustration of this approach see my recent answer on issue #3.

I like your idea of having a Tweet button. I will certainly pursue it, so stay tuned. Please note that for sharing urls via twitter you don't necessarily need to shorten them via tinyurl beforehand, as twitter internally creates aliases for all urls posted using its http://t.co link service, see https://support.twitter.com/articles/78124#.

The bookmarking feature also sound very appealing, certainly something I will add in the near future.

Thanks again for your comments!

Cheers, Andrzej

pssguy commented 8 years ago

Andrzej  Thanks for getting back to me and the comment on Climate app. I need to revisit one day I was thinking of something along lines of shinyURL.ui(displayURL=TRUE) cf copyURL which one could set to FALSE to save space The reactive option opens up other possibilities , obviously.  Anyways keep up the good work Andrew