Hi there,
I want to print some regression models definitions in rmarkdown as inline code:
Model: `r modeldef`
Unfortunately, the model definition string contains two asterisks (*) as in
output ~ fact1 + fact2*fact3 + fact1*fact2
and now (of course) I get italic text fact3 + fact1 instead of the asterisks.
Is there any existing function to avoid such problems or do I have to write my own function using gsubs to covert the string before inlining it?
Thanks for your help,
Martin