I know input$radiobutton1 is supposed to be on the server side, and not ui.R.
Say for my case, if I have a radiobutton to choose different languages, e.g English or French.
What I need is when user toggle between those radiobutton, I need the texts to be changed on the ui.R. So how should code for this case?
Thanks.
if the ui is dynamic not static/fixed, use uiOutput as its placeholder, and provide renderUI code that dynamically constructs it, you can place a radiobutton in such a way. https://shiny.rstudio.com/articles/dynamic-ui.html
alternatively, you can have a static initial radiobutton, in the normal way, but use an observeEvent that you use to call an updateRadioButtons() function call, to redefine something about the radiobutton