I have multiple parameters that I need to analyze and was wanting to embed the variable "Manufacturer" in the html output to allow me to easily control the display color and font size in the rmarkdown output. Any direction you can provide is appreciated.
I had the if statement in a chunk and when I created the case it stripped that out. Pardon me, I'm new to this.
If I try to set up a chunk
{r print-this}
if(HDclass=="1") 'The drive manufacturer is r Manufacturer'
This will just print 'The drive manufacturer is r Manufacturer' in the markdown and not the formatted text. I have tried " ", and combinations of print and cat to try to get it to work. Can you set the print output within a chunk or do you have to use css. I am new, these may be obvious questions.
The above line in the example works as long as it is inline and the reason I want it in the chunk is to use an eval= to determine whether the chunk gets processed to save on a bunch of if statements.