## In ui.R
## Add a toggleLink to a navbar
bsNavToggleLink(inputId="tl1", label="Log Scale", value = FALSE)
## In server.R
## Change the value of the created toggleLink to TRUE
updateToggleLink(session, inputId="tl1", value = TRUE)
Run the code above in your browser using DataLab