Displaying 1 result from an estimated 1 matches for "decorate_exampl".
Did you mean:
decorate_examples
2018 Jul 12
2
Top level \Sexpr and R CMD check
...e below.)
Is it intentional that \Sexpr is not allowed at the top level? The Rd
grammar allows this, but R CMD check does not.
Is there any other way to generate/modify the \examples{} section dynamically?
Thanks, Gabor
In the Rd file:
\Sexpr[stage=install,strip.white=FALSE,results=rd]{pkg:::decorate_examples('
CODE
')}
and pkg::decorate_examples outputs
\examples{
MODIFIED CODE
}
But then:
* checking Rd files ... WARNING
prepare_Rd: ps_cmdline.Rd:36-42: Section \Sexpr is unrecognized and
will be dropped