tidy_source in the formatR package
is used to polish the Rd files generated by roxygen2 in the usage and
the path of the Rd file
other arguments passed to
NULL; as a side effect, the original Rd file will be updated
If the usage or examples code is not syntactically correct, it will not
be reformatted and a message will be printed on screen. One possible
situation is the percent symbol
%, which should be escaped even in
the examples code (cf Writing R Extensions), and this can make the code
syntactically incorrect, e.g.
a %in% b should be
\%in\% b but the latter is not valid R code. Anyway, this function
will try to unescape the percent symbols before reformating the code, then
Yihui Xie <http://yihui.org>
1 2 3 4 5 6 7 8
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.