From edd at debian.org  Wed Sep 14 22:44:56 2011
From: edd at debian.org (Dirk Eddelbuettel)
Date: Wed, 14 Sep 2011 15:44:56 -0500
Subject: [Rd] Revision of shell.exec?
In-Reply-To: <012257AC-B91F-4E7E-86AC-95E5833F74AA@r-project.org>
References: <4E708194.8060406@gmail.com>
	<4E709447.10305@statistik.tu-dortmund.de>
	<CALh21i+JyvKJf=UGi2ENTXtB5rbbG-DZuwCYtGb97afG7Nguxg@mail.gmail.com>
	<4E70C350.6020506@gmail.com>
	<74357D3F-67CC-4D09-BBE9-C3988293317F@r-project.org>
	<CAFDcVCRiTPc1f9q+KnsEAoD3SUtb1Za_4waCw1O0r_PbWQFQ+Q@mail.gmail.com>
	<4E710B62.10703@gmail.com>
	<012257AC-B91F-4E7E-86AC-95E5833F74AA@r-project.org>
Message-ID: <20081.4680.253129.80251@max.nulle.part>


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



[Rd] Revision of shell.exec?
Dirk Eddelbuettel