You shouldn't be explicitly opening a device in a knitr document. I think maybe you should post a minimal document so we can figure out what's going wrong.
Hadley On Friday, July 10, 2015, Rich Shepard <rshep...@appl-ecosys.com> wrote: > On Fri, 10 Jul 2015, Hadley Wickham wrote: > > Have you tried explicitly print()ing the lattice graphics in your knitr >> doc? >> > > Hadley, > > Only now. Had not thought of trying this before. > > pdf('carlin-1-descriptive.pdf') > print(xyplot(value ~ sampdate | variable, data=carlin.1.melt, rm.na = T)) > > No error messages, but no graphic, either. Without specifying the pdf > device, TeX complains it cannot find a graphics device and lists > bit-mapped, > ps and svg devices. > > Most likely I do not have the correct syntax. > > Thanks, > > Rich > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- http://had.co.nz/ [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.