[R] Error in .External2(C_X11, paste("png::", filename, sep = ""), g$width, : unable to start device PNG
Ramiro Barrantes
ramiro at precisionbioassay.com
Tue Aug 11 15:32:06 CEST 2015
Hello,
I have the following reproducible knitr document:
\documentclass{article}
\usepackage[sc]{mathpazo}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\begin{document}
<<test,dev="png",echo=FALSE>>=
library(lattice)
xyplot(1:2~1:2)
@
\end{document}
but knitr is giving me an error:
Quitting from lines 9-11 (test.Rnw)
Error in .External2(C_X11, paste("png::", filename, sep = ""), g$width, :
unable to start device PNG
In addition: Warning message:
In (function (filename = "Rplot%03d.png", width = 480, height = 480, :
unable to open connection to X11 display ''
I don't have X11 installed in this machine and I was hoping not to have to. I am guessing that this is the problem right?
Any suggestions??
Thanks,
Ramiro
[[alternative HTML version deleted]]
More information about the R-help
mailing list