I'm making Rmarkdown raport and I want to add in text some colour for variable that has to depend from the if statement. For instance:
variable name: var
pseudocode: if (var > 1) than print(
r var) in green else print('r var') in red.
Raport in html with
green number = var if var > 1 else
red number = var if var <= 1
How do I do that?
Thanks for advice