shiny.router | A minimalistic router for your Shiny apps | Router library
kandi X-RAY | shiny.router Summary
kandi X-RAY | shiny.router Summary
A minimalistic router for your Shiny apps.
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.router
shiny.router Key Features
shiny.router Examples and Code Snippets
Community Discussions
Trending Discussions on shiny.router
QUESTION
I'm trying to use Google Analytics with my Shiny app and I published it on shyniapps.io.
But in my app I use shiny.router
, so it creates pages with #!
symbols and all path of some page looks like myapp/#!/page
.
Google Analytics displays this pas just as myapp/
.
Also shinyapps creates path between myapp
and #!
which starts with _w_
symbols (I think it's session code or something else). So in the end all path looks like myapp/_w_00000000/#!/page
where 0
is random hex numbers (0-f
).
I use just a standard Google Analytics script:
...ANSWER
Answered 2019-Sep-29 at 23:28by default, Google Analytics uses location.pathname
to define separate pages. you might override this by passing location.href
as an identification parameter:
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:
QUESTION
I am new to Shiny and trying to build a complete web-app using the shiny modules. I have reviewed the content of https://shiny.rstudio.com/articles/modules.html but still not sure how I would cleanly route the server side requests to a given server function with configuration. e.g.
If the client sends input from a form, which has 2 different actions I am trying to send the processing of the same to a different function. e.g. from the above tutorial -
...ANSWER
Answered 2018-Sep-07 at 11:35Possibly some recent developments in the package may help you. shiny.router
now supports specifying functions explictly that are called dependent on your request URI. I.e.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install shiny.router
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