Escape character $, but still a backslash\ character in the preview

Hi guys, I’m trying to learn R and I need to use the character . The problem is when I use the backslash character to escape character , it works but there is still a ’ \ ’ in the preview.

Why does it not look like below in the preview?


Thank you all in advancement!