Closed retorquere closed 4 years ago
Also without the engine:
```{r cdm, echo=FALSE}
erd <- paste(readLines(here::here('ReaderDB/erd.plantuml')), collapse="\n")
erd <- plantuml::plantuml(erd)
plot(erd)
This is caused by the way that the display is generated. It works, if you say plantuml.preview = FALSE
.
It does. But what about the one without the engine, where I call plot?
Also without the engine:
```{r cdm, echo=FALSE} erd <- paste(readLines(here::here('ReaderDB/erd.plantuml')), collapse="\n") erd <- plantuml::plantuml(erd) plot(erd)
Yes - as expected - well. - partly. The preview in the knit_engine is using vector = TRUE
, and the default for plutons.plantuml is vector = FALSE
. And Ghostscript is only used hewn using vectors. I should change to vector = FALSE
in the preview.
It is a bug in the grImport::PostScriptTrace()
function, or in Ghostscript..... or in plantuml, which is producing an not completely valid eps file.
Is there something I can set currently that will knit-and-preview?
No - give me a few minutes, and I will change the default.
OK - in the dev branch - could you please test, if it works as expected and let me know?
Wait - I will put it in master, as there are other changes in dev as well.
It is in m aster - sorry.
I've updated -- knitting works, but preview doesn't.
Yup. Just realised it as well. I will look into it.
OK - fix on master (and one dependency less). Please check if the preview is working and close this if it is.
Works!
Thanks.
With this document: https://gist.github.com/bb8584b40032742b0c275405a7a0ba4a I get
If I remove the
legend
block, I see no error, but when running plantuml directly, I see no error with the legend.