Tuesday, July 8, 2025
HomeCSShtml - Keep away from line break within the output of R...

html – Keep away from line break within the output of R shiny code


In my Code tags$p(HTML("...") is proven in a single line within the browser output.

And my query is: How can I obtain a browser output with the 2 traces tags$robust("robust textual content") and p(" created with <robust>...</robust>") in comparison with tags$p(HTML("...")? Any trace methods to keep away from a line break?

ui <- fluidPage(        
    
    
    # HTML spelling and the output seems in a single line       
    tags$p(HTML("
            <robust>robust textual content</robust> created with the tag &lt;robust&gt;...&lt;/robust&gt;)
    ")),

    # The next two traces of code ought to seem in the identical line in my browser
    tags$robust("robust textual content"),
    p(" created with <robust>...</robust>")

)

server <- operate(enter, output, session) {
}

shinyApp(ui, server)

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments