How to create R documentation file (.Rd) in latex?
latex, r, rstudio
Solution
There is the `Rd2latex` function in the tools package that will convert from the .Rd format to LaTeX format. This will let you preview the documentation in LaTeX. However this does not allow converting edits to the LaTeX document back to the .Rd document.
Problem
Is there a simple way to create R documentation file for simple R functions? I know I can edit a `.Rd` file in R-studio and preview it in HTML file. But how to put it into latex to edit and preview? Is there some latex package producing R documentation format?