Displaying 1 result from an estimated 1 matches for "viewpdfhelp".
2011 Apr 19
0
PDF help for linux
...uot;pdf")
> system(paste(getOption("pdfviewer"),"par.pdf"))
which works well. First question, can I let "help" to save the pdf
file to a different place other than current working directory?
Now I want to write a small function to do the above together.
> viewpdfhelp <- function(topic, reader = getOption("pdfviewer"))
+ {
+ genpdf <- help(topic = topic, help_type = "pdf") # save pdf file
+ pdffile <- paste(topic, ".pdf", sep = "") # the pdf file name
+ system(paste(reader, pdffile)) #call the viewer...