render_session_info: Server render function for rendering informations about user...

Description Usage Details Value Examples

View source: R/session.R

Description

Server render function for rendering informations about user session (app URL, username and pixel ratio)

Usage

1

Details

Use it with info_value UI function. If you want to use it with toggle_info(), you have to add outputOptions(output, [session info id], suspendWhenHidden = FALSE) to force rendering when the value is hidden.

Value

Shiny render function to be saved as an element of output.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
if(interactive()){
library(shiny)
library(shiny.info)

ui <- fluidPage(
   info_value("session_info")
)

server <- function(input, output, session) {
  outputsession_info <- render_session_info()
  # next line is required to work with toggle_info()
  outputOptions(output, "session_info", suspendWhenHidden = FALSE)
}
}

shiny.info documentation built on March 23, 2020, 5:07 p.m.