helppdf {sfsmisc} | R Documentation |
Utility 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(), ...)
topic |
the topic, passed to |
viewer |
a pdf viewer; the default is typically what you want interactively. |
quiet |
|
... |
further optional arguments passed to |
Returns the full path of the pdf file produced.
Martin Maechler
## Both calls work :
if(interactive()) {
helppdf(Normal)
helppdf("NegBinomial")
} else { # batch mode
od <- setwd(tempdir())
ff <- helppdf(Normal, viewer=NULL)
stopifnot(file.exists(ff))
setwd(od)# revert to previous dir.
}