I have the following R code which has some markdown embedded.
tab_header(
title = md(paste0(
"<b>",
'<span style="font-size: 11pt;">',input$title_num,'</span>',
"<br>",
'<span style="font-size: 11pt;">',input$title_name,'</span>',
"</b>"))
) %>%
My goal is have this entire code chunk be converted to text. Whenever I have done this in the past, I would do something like this.
mytext <- "y=mx+b"
#which prints like this below
print(mytext)
[1] "y=mx+b"
But in this case I have html code where I am using both ""
and ''
.
Simply wrapping ""
or ''
around the quote block will not work.
What is the best way to approach this?
I am trying to save this code through a rendertext()
in my shiny app.
Desired goal:
mytext <- " tab_header(
title = md(paste0(
"<b>",
'<span style="font-size: 11pt;">',input$title_num,'</span>',
"<br>",
'<span style="font-size: 11pt;">',input$title_name,'</span>',
"</b>"))
) %>% "
print(mytext)