How to write an approximation equation in Rmarkdown?

Viewed 907

enter image description here

Like in the image above, I have tried the latex version of \approx and have tried escaping it with \\approx but still not luck. Just need the code chunk to create the approximation equation symbol for Rmarkdown, Thank you in advance.

Found my answer, the code is below

 ---
 title: "approx"
 author: "Daniel"
 date: "6/4/2020"
 output: html_document
 ---

 y $\approx$ x
1 Answers

Unicode works inside code chunks

plot(1:10,runif(10), main = "y \U2248 x")
Related