[Tikzdevice-bugs] metapost device: problem with calculating font space?

Charlie Sharpsteen chuck at sharpsteen.net
Fri Apr 22 21:59:24 CEST 2011


On Fri, Apr 22, 2011 at 3:48 AM, mat <matthieu.stigler at gmail.com> wrote:

> I'm however facing a very strange problem, that I do not understand... It
> seems now that opening tikzDevice, there won't be any search for the
> compilers anymore, right? As consequence, the default options are not set
> anymore, which will break the simplest tikz, see:
>
> library(tikzDevice)
> Loading required package: filehash
> filehash: Simple key-value database (2.1-1 2010-10-04)
> > getOption("tikzFooter")
> NULL
> > getOption("tikzDefaultEngine")
> NULL
> > library(tikzDevice)
> > tikz("~/temp/go.tex")
> Error in switch(engine, pdftex = { : EXPR must be a length 1 vector
>
> (btw, is this line useful also for the metapost function?)
>
>
> So I tried to open the session with setTikzDefaults()
> which partly solves the problem, but I came to something more critical:
>
> Error in .External("metapDevice", file, width, height, bg, fg, baseSize =
> pointsize,  :
>  C symbol name "metapDevice" not in DLL for package "tikzDevice"
> Calls: metapost -> .External
>
> which I do not understand....
>
> Any idea? Thanks!!!
>
> Matthieu


Hmm, this is most strange. I cannot reproduce this behavior on my machine.
 I tried re-cloning the repository and reinstalling to see if I was somehow
using files that had not been published to GitHub.

I would suggest double-checking that you are using the right version of the
code and that nothing else is getting mixed into the package somehow:

   cd path/to/RTikZDevice
   git checkout experimental/metapost     # Checkout the metapost branch

   # Make sure it matches what I posted on GitHub. This *will* destroy
   # any local modifications, so stash them on another branch if you want to
keep them.
   git reset --hard origin/experimental/metapost
   git pull origin   # make sure the branch is up to date

   make install

If you are still getting problems after that, let me know which OS and
version of R you are using and I can try to reproduce the error.

-Charlie


More information about the Tikzdevice-bugs mailing list