How to use reactive argument as a value for an argument in code chunk in shiny

Hi Dears,
I am wondering how can I use a reactive logical expression as a value for an argument in code chunk.

for example as an argument to eval in the following chunk

{r,eval="input$task == 'Bond Analysis'",results='asis'}
asis_output("Row \n")
asis_output("-------------------------------------\n")
asis_output("### Price")

task is a selectInput with multiple choices. No matter what, this chunk is evaluated.

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.