Server render function for rendering informations about user session (app URL, username and pixel ratio)
Source:R/session.R
render_session_info.Rd
Server render function for rendering informations about user session (app URL, username and pixel ratio)
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.
Examples
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)
}
}