Dear list,
I tried to write a dynamic help file following the Writing R Extensions
manual (section 2.12, "Dynamic pages"). When using the \Sexpr macro, the
package does not longer pass the R CMD CHECK. I get the following error:
?? R CMD build ?????????????????????????????
? checking for file 'C:\R\pkgs\GGIR/DESCRIPTION' ...
? preparing 'GGIR': (8.5s)
? checking DESCRIPTION meta-information ...
? cleaning src
? installing the package to process help pages (427ms)
? building the PDF package manual (13.9s)
Warning in system2(..., stdout = FALSE, stderr = FALSE) :
'"makeindex"' not found
Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet,
:
unable to run 'makeindex' on 'Rd2.idx'
Warning in system2(..., stdout = FALSE, stderr = FALSE) :
'"makeindex"' not found
Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet,
:
unable to run 'makeindex' on 'Rd2.idx'
Error in running tools::texi2pdf()
Error in proc$get_built_file() : Build process failed
It seems there is something wrong when building the package manual, but
after some attempts, I have not been able to fix this. Any advice is
welcome.
Here an example of the \Sexpr usage in the .Rd file, consider "argument"
the name of a parameter to function "fn" in package "pkg":
\usage{
fn(argument= \Sexpr{format(formals(pkg::fn)[[" argument "]])})
}
Best,
Jairo