Rstudio Shiny, how can I display a version of a Shiny server on a Shiny page?

Is there a variable or way to query the current RStudio Shiny webpage to display the version of the server that is running? For instance. display something like shiny-0.10.1 on the web page.

Any ideas?

+5
source share
1 answer

You can get the shiny version that works with packageVersion :

 > packageVersion("shiny") [1] '0.10.1' 

If you need details on the server, you can make a system call:

 > system('shiny-server --version', intern = TRUE) [1] "Shiny Server v1.1.0.10000" "Node.js v0.10.21" 

or if you use a brilliant pro server, there is a health check endpoint that invokes

 http://my-shiny-ip-address/__health-check__ 

will return an HTTP response with server information if the server is connected to the network:

 server-version: 1.2.3.4 active-connections: 8 active-apps: 2 active-processes: 3 cpu-percent: 13 memory-percent: 49 swap-percent: 39.1 load-average: 1.01953125 

see http://rstudio.imtqy.com/shiny-server/latest/#monitoring-the-server

+12
source

Source: https://habr.com/ru/post/1203202/


All Articles