shiny.i18n | Shiny applications internationalization | Data Visualization library
kandi X-RAY | shiny.i18n Summary
kandi X-RAY | shiny.i18n Summary
Shiny applications internationalization made easy
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of shiny.i18n
shiny.i18n Key Features
shiny.i18n Examples and Code Snippets
Community Discussions
Trending Discussions on shiny.i18n
QUESTION
I'm building shiny application with google-auth and internationalization, so I use googleauthr
and shiny.i18n
. I want that the user, which registered in my app and selected certain language in next time get app in needed language, but if this user is new or user even didn't authorization he must get default language for app.
There are code of my app:
...ANSWER
Answered 2019-Sep-09 at 09:42The reason why your code is not working is that User()
(silently) raises an error when UserInfo()
is falsy. That is it returns an error (not NA
or NULL
).
You have different options to solve this. You could move the validate part into ReactiveLocale
, or you use a tryCatch
approach as in this toy example:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install shiny.i18n
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page