[Tikzdevice-bugs] Error in createLockFile(lockname) : cannot create lock file

Ahs ah.sjostrom at gmail.com
Sat Dec 1 22:23:49 CET 2012


Hi,
I also got the  Error in createLockFile(lockname) : cannot create lock file 
with tikz. 

After a couple of days of strugging, what solved it was creating a 
.RProfile file in wd,
including the line
options( tikzMetricsDictionary='tikzMetricsDictionary' )
where the path is the wd.

Naive, but works for me!

On Monday, May 23, 2011 3:51:41 PM UTC+2, Vegard Nossum wrote:
>
> Hi,
>
> I got this error:
>
> > tikz(file="plot.tex")
> > cr.plots(lm(A ~ B, data = C), ask = F)
> Error in createLockFile(lockname) : cannot create lock file
>
> By some googling, I found a similar report (with no replies):
>
> http://r.789695.n4.nabble.com/debug-R-device-plot-tt3403638.html
>
> So what's wrong is that I had earlier aborted cr.plots() by pressing
> ctrl-C, and it appears that somebody didn't clean up the
> tikzMetricDictionary lock file. Moreover, tikzDevice appears to
> proceed to call close(-1) if creating the file fails (strace output):
>
> open("/tmp/Rtmp1HU5cv/tikzMetricsDictionary", O_RDONLY) = 4
> open("/tmp/Rtmp1HU5cv/tikzMetricsDictionary___LOCK",
> O_WRONLY|O_CREAT|O_EXCL, 0666) = -1 EEXIST (File exists)
> close(4294967295)                       = -1 EBADF (Bad file descriptor)
> write(2, "Error in createLockFile(lockname"..., 60) = 60
>
> Removing the ___LOCK file fixed things for me.
>
> Just wanted to let you know. My version of R is 2.10.0 (2009-10-26)
> and my version of tikzDevice is 0.5.3.
>
>
> Vegard
> _______________________________________________
> Tikzdevice-bugs mailing list
> Tikzdev... at lists.r-forge.r-project.org <javascript:>
>
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/tikzdevice-bugs
>


More information about the Tikzdevice-bugs mailing list