Colleagues, I am interesting in opening a PDF document via the command line from both Windows, OS X, and Linux ( R version 2.8.0). I found a command openPDF in Biobase. However, I would rather execute the command myself. For example, in OS X:> system("open filename.pdf")is successful. Is there a comparable command line command for Windows or Linux? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-415-564-2220 www.PLessThan.com
i guess it depends on what you have installed on your linux OS but xpdf works for me. i use fedora. On Sun, Dec 14, 2008 at 7:18 PM, Dennis Fisher wrote:> Colleagues, > > I am interesting in opening a PDF document via the command line from > both Windows, OS X, and Linux ( R version 2.8.0). I found a command > openPDF in Biobase. However, I would rather execute the command > myself. For example, in OS X: >> system("open filename.pdf") > is successful. > > Is there a comparable command line command for Windows or Linux? > > Dennis > > Dennis Fisher MD > P < (The "P Less Than" Company) > Phone: 1-866-PLessThan (1-866-753-7784) > Fax: 1-415-564-2220 > www.PLessThan.com > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
On Sun, Dec 14, 2008 at 6:18 PM, Dennis Fisher <fisher at plessthan.com> wrote:> Colleagues, > > I am interesting in opening a PDF document via the command line from both > Windows, OS X, and Linux ( R version 2.8.0). I found a command openPDF in > Biobase. However, I would rather execute the command myself. For example, > in OS X: >> >> system("open filename.pdf") > > is successful. > > Is there a comparable command line command for Windows or Linux?You might find options()$pdfviewer helpful. Hadley -- http://had.co.nz/
On Sun, 14 Dec 2008, Dennis Fisher wrote:> Colleagues, > > I am interesting in opening a PDF document via the command line from both > Windows, OS X, and Linux ( R version 2.8.0). I found a command openPDF in > Biobase. However, I would rather execute the command myself. For example, > in OS X: >> system("open filename.pdf") > is successful. > > Is there a comparable command line command for Windows or Linux?R for Windows has 'open.exe'. All other platforms have an apppriate comannd (if available) as getOption("pdfviewer").> > Dennis > > Dennis Fisher MD > P < (The "P Less Than" Company) > Phone: 1-866-PLessThan (1-866-753-7784) > Fax: 1-415-564-2220 > www.PLessThan.com-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595