helppdf.RdUtility to view PDF-rendered help pages; particularly
useful in case they contain mathematical formulas or otherwise
sophisticated formats.
helppdf(topic, viewer = getOption("pdfviewer"), quiet = !interactive(), ...)Returns the full path of the pdf file produced.
if(interactive()) {
## Both calls work :
helppdf(Normal)
helppdf("NegBinomial")
} else if(.Platform$OS.type != "windows") { # batch mode (Windows often too slow for this)
od <- setwd(tempdir())
ff <- helppdf(Normal, viewer=NULL)
stopifnot(file.exists(ff)) ; print(ff)
setwd(od)# revert to previous dir.
}
#> Warning: texi2dvi script/program not available, using emulation
#> Saving help page to ‘Normal.pdf’
#> [1] "/tmp/Rtmpe6g2Gq/Normal.pdf"