How do I include backticks in an Rstudio code snippet?

Viewed 319

I'm writing a snippet to create the following slide header in a markdown file which is literally as follows:

--- .slide  x:`r x("Methods")` y:`r y("Methods")`

I want to write a snippet that allows me to type in Methods in both fields. The problem is that the backticks are causing the the snippet to be evaluated, not typed.

I'm aware that in this case I could write code that means I don't need the backticks, but I was looking for a way to include backticks in snippets generally.

2 Answers
Related