tikz() fails

94 views
Skip to first unread message

baptiste auguie

unread,
Jan 4, 2012, 6:04:13 PM1/4/12
to tikzd...@googlegroups.com
Hi,

I can't seem to get tikzDevice to work on my machine. I tried the CRAN
version, the r-forge version, and even github. I get this error message,

library(tikzDevice)
Loading required package: filehash
filehash: Simple key-value database (2.2 2011-07-21)
tikzDevice: R Graphics Output in LaTeX Format (v0.6.2-63-38eca21)
LaTeX found in the PATH using the command: pdflatex
XeLaTeX found in the global option: tikzXelatex
LuaLaTeX found in the PATH using the command: lualatex
> tikz()
> plot(1,1)
Error in readKeyMap(filecon) : read failed
> sessionInfo()
R version 2.14.1 Patched (2012-01-03 r58045)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

locale:
[1] en_NZ.UTF-8/en_NZ.UTF-8/en_NZ.UTF-8/C/en_NZ.UTF-8/en_NZ.UTF-8

attached base packages:
[1] stats graphics grDevices utils datasets grid methods
base

other attached packages:
[1] tikzDevice_0.6.3 filehash_2.2 ggplot2_0.8.9 proto_0.3-9.2
reshape_0.8.4 plyr_1.6

loaded via a namespace (and not attached):
[1] tools_2.14.1

Any ideas what could be wrong with my setup?

Thanks,

baptiste

Charlie Sharpsteen

unread,
Jan 4, 2012, 6:14:48 PM1/4/12
to tikzd...@googlegroups.com
On Wednesday, January 4, 2012 3:04:13 PM UTC-8, baptiste auguie wrote:

> Hi,
>
> I can't seem to get tikzDevice to work on my machine. I tried the CRAN
> version, the r-forge version, and even github. I get this error message,
>
> library(tikzDevice)
> Loading required package: filehash
> filehash: Simple key-value database (2.2 2011-07-21)
> tikzDevice: R Graphics Output in LaTeX Format (v0.6.2-63-38eca21)
> LaTeX found in the PATH using the command: pdflatex
> XeLaTeX found in the global option: tikzXelatex
> LuaLaTeX found in the PATH using the command: lualatex
> > tikz()
> > plot(1,1)
>

...

> Error in readKeyMap(filecon) : read failed
>

...

> Any ideas what could be wrong with my setup?
>
> Thanks,
>
> baptiste
>

The error points to the `readKeyMap` function which sounds like it would be
a part of the `filehash` package. I would check to see that you have
read/write access to your metrics dictionary, `options(
'tikzMetricsDictionary )`, and possibly try trashing the file so that it
gets re-created. A corrupted dictionary could explain why several versions
of the package are failing in the same way.

-Charlie

baptiste auguie

unread,
Jan 4, 2012, 7:22:23 PM1/4/12
to tikzd...@googlegroups.com
That fixed it!

Thanks a lot,

baptiste

Reply all
Reply to author
Forward
0 new messages