Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 205301

Render computed HTML in RMarkdown

$
0
0

I have a function that produces some html and I want RMarkdown to render the html.

```{r}
outputFromAFunction <- '<span style="background-color: #A6CEE3">A</span>'
outputFromAFunction
```

How do I tell rmarkdown to render outputFromAFunction as the colored letter A instead of simply printing the html as text.

I have already tried the results='asis' code chunk option and it removes the closing span tag and does not render the html.

I need to render a html page not shiny.


Viewing all articles
Browse latest Browse all 205301

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>