On 21/07/2023 11:34 a.m., Antoine Fabri wrote:
Do I understand correctly that we don't want Rd files to be valid latex ?
Yes, it needs to be valid Rd format, which is "a simple markup language
much of which closely resembles (La)TeX". For more details see section
2.1 of Writing R Extensions,
Do I understand correctly that we don't want Rd files to be valid latex ?
This seems odd to me.
I see that `tools::parse_Rd()` doesn't like `\verb!foo!` so maybe roxygen2
is actually doing the right thing (as opposed to just trying to) ?
`parse_Rd() ` is probably what I need indeed, for some reaso
В Fri, 21 Jul 2023 15:14:09 +0200
Antoine Fabri пишет:
> On a closer look it seems like roxygen2 introduces those, when using
> markdown backtick quoting, if the quoted content is not syntactic. For
> instance:
>
> #' `c(c(1)`
> #' `c(c(1))`
>
> Will convert the first line to `\verb{c(c(1)}` an
Surprisingly this invalid latex syntax is still formatted "right" in the
html output.
On a closer look it seems like roxygen2 introduces those, when using
markdown backtick quoting, if the quoted content is not syntactic. For
instance:
#' `c(c(1)`
#' `c(c(1))`
Will convert the first line to `\ver