I am using a cardProfile
from bs4Dash
library to show the current user in my Shiny
app.
The cardProfile looks like this in the ui
part:
cardProfile(
src = "logo.png",
title = 'SHOW HERE THE USERNAME'
subtitle = "Administrator",
cardProfileItemList(
bordered = TRUE,
cardProfileItem(
title = "Email",
description = 'SHOW HERE THE EMAIL'
)
)
What should I use in the title and description to show a name and email depending on an input?
I have tried with a textOutput
:
title = textOutput('title')
description = textOutput('email')
And a reactive in the server
part with no result:
reactive({
USER <- input$user
output$title<- USER
output$email<- usuarios$email[usuarios$usuario == USER ]
})