Hi,
I am following 16 Function documentation – R Packages (2e) and I converted documentation for my package with https://roxygen2md.r-lib.org/ using the three-stage workflow and crosschecked with Convert documentation to markdown by krlmlr · Pull Request #1583 · rstudio/rmarkdown · GitHub example. All seems to work, except I do not know if it is a problem that find_rd()
is not empty after all automated and manual conversions are done and still reports:
-
escaped characters: (
\[***\]
- for historical reasons, I use literal square brackets and do not want the text to be hyperlinked) -
equations: \eqn{} or \deqn{} - the main reason I am asking; these seem to be the old style Rd tags but in none of the materials above I saw a suitable substitution. In general,
$eq$
or
$$
eq
$$
should work but in my case it produces literal $eq$
in the documentation. Is it not supported yet or am I doing something wrong?
- contextual syntax:
\dontrun{}
is specific for examples and I assume it does not have a direct translation in markdown syntax. Though in r-pkgs.org Hadley et al. suggest alternatives such as@examplesIf condition
or e.g.interactive()
ortry()
I hope it is not a problem if some parts of the examples still keep\dontrun{}
, or is it?
I am asking to make sure that potential issues will not bite me later because I might be stuck in the middle between two approaches to document.
Thank you!
My description includes:
RoxygenNote: 7.3.2
Roxygen: list(markdown = TRUE)