Dear R users,
This is the equation that I want to put in when documenting an R function: $Beta(\alpha c_{ij}+\beta, c_{ij}+\beta)$
I used Roxygen2 when documenting functions. To add an equation in documentation, one should use \eqn or \deqn. Hadley explains in his
R packages:
Mathematics
You can use standard LaTeX math (with no extensions). Choose between either inline or block display:
This is what I put in the documentation: \eqn{Beta(\alpha c_{i,j} +\beta, c_{i,j}+\beta)}
After running devtools::document(), it appeared in the help file like this: Beta(α c_{i,j} +β, c_{i,j}+β)
Any idea on how to make the subscripts work?
Thanks,
Jane