I'm having trouble displaying latex maths symbols inline in a notebook:
---
title: "R Notebook"
output:
html_document:
df_print: paged
---
```{r, echo=F, message=F, warning=F, results="asis"}
cat("Latex attempt 1: $x = 5$ \n\n") # Works
cat("Latex attempt 2: $x > 5$ \n\n") # Works
cat("Latex attempt 3: $x \\leq 5 $ \n\n") # \leq doesn't render and whole equation fails
cat("Latex attempt 4: $$x \\leq 5 $$ \n\n") # Works with equation on next line
```
How can I display inline 'less than or equal to' sign in the second last entry?
Note that for the purposes of this question I would like to use results="asis" in the chunk.