use rtl in rmarkdown

@cderv is correct. I'm able to successfully have an rtl PDF document using the following yaml header:

---
title: "RTL Test"
output:
  pdf_document: 
    latex_engine: xelatex
dir: rtl
---

I'm attaching the resulting document.

rtl_test.pdf (25.3 KB)

2 Likes