Displaying 10 results from an estimated 10 matches for "parserd".
Did you mean:
parser
2023 Jul 21
1
tools::parseLatex() crashes on "\\verb{}"
...\code{}, so it outputs \verb{}.
Also, unlike in LaTeX as understood by tools::parseLatex(), \verb{}
blocks use the {} braces in R documentation, and are understood
correctly by tools::parse_Rd(). Perhaps you also need tools::parse_Rd()?
--
Best regards,
Ivan
[*] https://developer.r-project.org/parseRd.pdf
2023 Jul 21
1
tools::parseLatex() crashes on "\\verb{}"
...o, unlike in LaTeX as understood by tools::parseLatex(), \verb{}
> blocks use the {} braces in R documentation, and are understood
> correctly by tools::parse_Rd(). Perhaps you also need tools::parse_Rd()?
>
> --
> Best regards,
> Ivan
>
> [*] https://developer.r-project.org/parseRd.pdf
>
[[alternative HTML version deleted]]
2013 Jan 04
1
Bug in R CMD check for \ in Rd?
...confused by this warning, because in my Rd, I have this in
the usage section:
knit_expand(file, ..., text = readLines(file, warn = FALSE), delim =
"\\\\{\\\\{((.|\\n)+?)\\\\}\\\\}")
I do not understand why four backslashes became one in R CMD check. I
read http://developer.r-project.org/parseRd.pdf again and it says {}
in character strings do not need to be escaped, so the only character
to escape in this case is the backslash. The text/html help page
rendered from my Rd shows "\\{\\{((.|\n)+?)\\}\\}" correctly. So I'm
wondering if this is a bug of R CMD check, or I misunder...
2009 Jan 09
1
More intensive checking of R help files
...k_summary.html: they will
show up as 'WARN' in the first two columns: click on the link to see
the details for the package you are interested in.
The dialect of Rd markup for which the parser checks differs in some
ways from that described previously: see
http://developer.r-project.org/parseRd.pdf for a current description:
however almost all the errors found are errors under the existing
description in 'Writing R Extensions'.
The main difference is that \code is in the new version intended for
valid R code and not fragments of R code or other languages (such as
SQL). This...
2008 Nov 13
1
Experimental Rd parser in trunk.
I've just committed the parse_Rd() function to R-devel. This is a
parser for Rd files, described in
http://developer.r-project.org/parseRd.pdf
It is not identical to the current parser, and about a dozen of the base
man pages currently signal syntax errors. It also detected errors in 10
files that were errors according to both definitions, but were missed by
the current system, and I've already fixed those. I plan to patch t...
2008 Dec 07
2
Checking your package's help files
...emize environment.
c) Using markup in verbatim-like environments will lead to nonsensical
output: it seems the most common error is to use \code inside \examples.
What markup is allowed where is not very well defined: Duncan Murdoch has
started to document this at http://developer.r-project.org/parseRd.pdf but
that currently is more a description of what should happen, not what has
been implemented.
These issues are not rare (except 3a): about 10% of CRAN packages have
them.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.a...
2023 Jul 21
1
tools::parseLatex() crashes on "\\verb{}"
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 `\verb{c(c(1)}` and the second to
`\code{c(c(1))}`.
I've opened a ticket there FYI:
2009 Jun 19
2
Changes to Rd handling in R-devel
I've just committed some fairly big changes to R-devel.
- There's a new tag \Sexpr which allows R code to be embedded within
the Rd file, similar to Sweave, \RdOpts
corresponds to \SweaveOpts.
- The parser now mainly issues warnings, rather than errors, in case
of syntax errors. It throws away a few tokens and tries to restart.
This should let you see most of your errors in
2009 Mar 05
2
Two documentation questions
1. I often like to put bits of the output into the manual pages. (We can
have a discussion of the value of this elsewhere -- I think it is sometimes
a good thing.)
In R I need to surround these with \dontrun{} for the sake of the tester,
which is fine. But the printed output contains
## Not run
and
## End (not run)
comments, which defeats the purpose of the lines by breaking them
2014 Nov 12
4
Problem with build and check
I am getting failure of build and check, for an Rd file that has a long argument list.
Guess diagnosis: a quoted string beyond a certain point in the argument list is fatal.
Example: Use the function below, create an Rd file for it with prompt(). Move the .Rd
file to the man directory (no need to edit it) and try building
dart.control <- function(server=c("production",