Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of app in practice #4

Open
pssguy opened this issue Feb 10, 2016 · 2 comments
Open

Usage of app in practice #4

pssguy opened this issue Feb 10, 2016 · 2 comments

Comments

@pssguy
Copy link

pssguy commented Feb 10, 2016

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
Copy link
Owner

aoles commented Feb 11, 2016

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
Copy link
Author

pssguy commented Feb 11, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants