The R package RTLknitr provide seamless support for right-to-left (RTL) languages, such as Persian and Arabic, in R Markdown documents and LaTeX output. It includes functions and hooks that enable easy integration of RTL language content, allowing users to create documents that adhere to RTL writing conventions.
You can install the stable version from CRAN.
install.packages('RTLknitr', dependencies = TRUE)
You can install the development version from Github
# install.packages("remotes")
remotes::install_github("FoadEsmaeili5/RTLknitr")
RTLknitr in publications use:Esmaeili, F. (2023). _RTLknitr: Right to Left Dynamic Documents Using knitr _. R package version 1.0.0, https://cran.r-project.org/web/packages/RTLknitr.
A BibTeX entry for LaTeX users is
@Manual{RTLknitr, title = {RTLknitr: Right to Left Dynamic Documents Using knitr}, author = {Foad Esmaeili}, year = {2023}, note = {R package version 1.0.0}, url = {https://cran.r-project.org/web/packages/RTLknitr} }