Using tikzDevice in a lex does not work

I am trying to include a histogram created with qplot(ggplot2), with a code snippet

<<histAge, echo = F, message = F, warning = F, dev='tikz'>>=
  plot(hist.age)
@

It works fine with dev='pdf', but does not work with dev='tikz'. The library is tikzDeviceinstalled in R, is tikzincluded in the document lyx.

If it matters, hist.ageis qplotwith a histogram geom.

A message in the lex says somewhere

System error (latexCmd, intern = T, ignore.stderr = T): 'C: \ Program' was not found.

Common error: Error: Unable to convert file.

I would really appreciate any help to make this work!

+4
source share
1

, . tikzDevice (> 0.8.1) CRAN, :

devtools::install_github('yihui/tikzDevice')

Windows, RTools.

+3

Source: https://habr.com/ru/post/1610989/


All Articles