[R] Setting a pdf reader different from acroread under *nix

Douglas Bates bates at stat.wisc.edu
Sun Oct 21 16:39:15 CEST 2007


On 10/21/07, Vittorio.De.Martino.vdemart1 at tin.it
<Vittorio.De.Martino.vdemart1 at tin.it> wrote:
> Under FreeBSD 6.2 I installed R 2.6.0.
> Trying to load e.g. vignette("zoo")  R calls acroread automagically.
> I instead would like to use the lighter kde built-in pdf   reader kGhostView-
> Is this possible?

Yes.  If you set an environment variable R_PDFVIEWER to the full name
of the kGhostView executable before configuring and building R.

Alternatively you could create a file Renviron.site in the R_HOME/etc
directory that defines R_PDFVIEWER to be the full name of the
kGhostView executable (usually something like /usr/bin/kghostview).



More information about the R-help mailing list