Re: [Rd] Revision of shell.exec?

From: Dirk Eddelbuettel <edd_at_debian.org>
Date: Wed, 14 Sep 2011 15:44:56 -0500

On 14 September 2011 at 16:22, Simon Urbanek wrote:
|

| On Sep 14, 2011, at 4:15 PM, Brian Oney wrote:
|
| > Hi there,
| > new idea (at 10 at night). All the emails keep me thinking (btw thanks for all the feedback).
| > What does this do on linux?
| >
| > getOption("pdfviewer")
| > ### I got this idea from: getS3method("print","vignette")
| >
|
| It gives you the detected PDF viewer as I was explaining (essentially R_PDFVIEWER). The two detected settings I was referring to are R_PDFVIEWER (for PDF) and R_BROWSER (for URLs) which are the initial settings for the "pdfviewer" and "browser" options.
|
| Note that it's what it say it is - R_PDFVIEWER is usually something like acroread or evince so not particularly useful for your purpose ...

R> getOption("pdfviewer")
[1] "/usr/bin/xdg-open"
R>

We've had that as xdg-open in Debian / Ubuntu for a while now...

Dirk

-- 
New Rcpp master class for R and C++ integration is scheduled for 
San Francisco (Oct 8), more details / reg.info available at
http://www.revolutionanalytics.com/products/training/public/rcpp-master-class.php

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Wed 14 Sep 2011 - 20:47:30 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 15 Sep 2011 - 08:50:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive