Debian Codegraph @

man/helppdf.Rd

raw
1 \name{helppdf}
2 \alias{helppdf}
3 \title{help() Type="pdf" and View It}
4 \description{
5 Utility to view PDF-rendered \code{\link{help}} pages; particularly
6 useful in case they contain mathematical formulas or otherwise
7 sophisticated formats.
8 }
9 \usage{
10 helppdf(topic, viewer = getOption("pdfviewer"), quiet = !interactive(), ...)
11 }
12 \arguments{
13 \item{topic}{the topic, passed to \code{\link{help}()}.}
14 \item{viewer}{a pdf viewer; the default is typically what you want interactively.}
15 \item{quiet}{\code{\link{logical}} indicating that nothing should be
16 printed to the console and the result should be returned as
17 \code{\link{invisible}()}.}
18 \item{\dots}{further optional arguments passed to \code{help()}.}
19 }
20 \value{
21 Returns the full path of the pdf file produced.
22 }
23 \author{Martin Maechler}
24 \seealso{
25 \code{\link{help}}, \code{\link{system}}.
26 }
27 \examples{
28 if(interactive()) {
29 ## Both calls work :
30 helppdf(Normal)
31 helppdf("NegBinomial")
32 } else if(.Platform$OS.type != "windows") { # batch mode (Windows often too slow for this)
33 od <- setwd(tempdir())
34 ff <- helppdf(Normal, viewer=NULL)
35 stopifnot(file.exists(ff)) ; print(ff)
36 setwd(od)# revert to previous dir.
37 }
38 }
39 \keyword{utilities}
40 \keyword{print}