[Tikzdevice-bugs] Graphics APA mismatch

Charlie Sharpsteen chuck at sharpsteen.net
Wed Jul 21 08:33:03 CEST 2010


Hi Ista,

What happened is that the R "Graphics Device Version" got bumped in 2.11.0
because some new raster functions were added.  tikzDevice 0.4.8 tells R it
is using an outdated version of the graphics interface and R responds by
throwing an error.

This has been fixed in tikzDevice 0.5.0- but due to my being insanely busy I
haven't yet had an afternoon free to add finishing touches and push it to
CRAN.  However, builds of 0.5.0 are available from R-Forge:

  install.packages( 'tikzDevice', repos = 'http://r-forge.r-project.org' )

The only things missing that need to be added before the package goes to
CRAN are some clarifications and tweaks to the documentation.  Functionally
speaking, the version of 0.5.0 on R-Forge is the same as the version that
will appear on CRAN.  In addition to supporting the new graphics interface
version 0.5.0 fixes some issues with fontsizes that affected lattice and
ggplot2 graphics.

Thanks for reporting this- if tikzDevice 0.4.8 does not work under the
latest version of R, then I need to find time to get 0.5.0 on to CRAN as
soon as possible.

-Charlie

On Tue, Jul 20, 2010 at 9:23 PM, Ista Zahn <izahn at psych.rochester.edu>wrote:

> On Wed, Jul 21, 2010 at 4:21 AM, Ista Zahn <izahn at psych.rochester.edu>
> wrote:
> > Hello,
> > I recently ran into a problem with the tikzDevice package.
> >
> >> library(tikzDevice)
> > Loading required package: filehash
> > filehash: Simple key-value database (2.1 2010-02-04)
> > tikzDevice: A Device for R Graphics Output in PGF/TikZ Format (v0.4.8)
> > Checking for a LaTeX compiler...
> >
> >
> > A working LaTeX compiler was found in:
> >        The R environment variable R_LATEXCMD
> >
> > Global option tikzLatex set to:
> >        /usr/bin/latex
> >
> > pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Arch Linux)
> > kpathsea version 5.1.0
> > Copyright 2009 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
> > There is NO warranty.  Redistribution of this software is
> > covered by the terms of both the pdfTeX copyright and
> > the Lesser GNU General Public License.
> > For more information about these matters, see the file
> > named COPYING and the pdfTeX source.
> > Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh
> (pdfTeX).
> > Compiled with libpng 1.4.2; using libpng 1.4.3
> > Compiled with zlib 1.2.5; using zlib 1.2.5
> > Compiled with poppler version 0.14.0
> >
> >
> >
> >> tikz(file = "/home/izahn/Desktop/test.tikz")
> > Error in tikz(file = "/home/izahn/Desktop/test.tikz") :
> >  Graphics API version mismatch
> >
> > sessionInfo()
> > R version 2.11.0 (2010-04-22)
> > i686-pc-linux-gnu
> >
> > locale:
> >  [1] LC_CTYPE=en_US.utf8       LC_NUMERIC=C
> >  [3] LC_TIME=en_US.utf8        LC_COLLATE=en_US.utf8
> >  [5] LC_MONETARY=C             LC_MESSAGES=en_US.utf8
> >  [7] LC_PAPER=en_US.utf8       LC_NAME=C
> >  [9] LC_ADDRESS=C              LC_TELEPHONE=C
> > [11] LC_MEASUREMENT=en_US.utf8 LC_IDENTIFICATION=C
> >
> > attached base packages:
> > [1] stats     graphics  grDevices utils     datasets  methods   base
> >
> > other attached packages:
> > [1] tikzDevice_0.4.8 filehash_2.1
> >
> > loaded via a namespace (and not attached):
> > [1] tcltk_2.11.0 tools_2.11.0
> >
> > I will be greatful if you can help me resolve the error.
> >
> > Best,
> > Ista
> >
> > --
> > Ista Zahn
> > Graduate student
> > University of Rochester
> > Department of Clinical and Social Psychology
> > http://yourpsyche.org
> >
>
>
>
> --
> Ista Zahn
> Graduate student
> University of Rochester
> Department of Clinical and Social Psychology
> http://yourpsyche.org
>
> >
> _______________________________________________
> Tikzdevice-bugs mailing list
> Tikzdevice-bugs at lists.r-forge.r-project.org
>
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/tikzdevice-bugs
>


More information about the Tikzdevice-bugs mailing list