Closed py9mrg closed 3 years ago
Thanks for the report.
This will cause knitr compilation to hang at the first chunk that creates a plot (the only chunk, in this case). But if you comment out either the knitr line (or change it to png) or the thematic_rmd call, then it will compile perfectly fine.
This first example is working for me - I can't reproduce.
the following won't compile unless either the thematic library is not loaded or the device is not set to svg:
This is also working for me - I can't reproduce either
Have you tried reinstall the packages ? Do you get the issue with their CRAN version too ?
I also simplified the example and use a dark theme to see better that thematic is working
---
title: "Untitled"
output:
html_document:
theme:
bootswatch: darkly
base_font:
google: Open Sans
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE, dev = "svg")
library(ggplot2)
thematic::thematic_rmd(font = "auto")
ggplot(iris, (aes(Sepal.Width, Sepal.Length))) +
geom_point()
Hello @cderv , hmmm that's weird - and I have the same problem with your simplified example. Yes I was originally on all the CRAN versions when the problem first arose. Then tried updating to development versions (and older versions, too) and same problem. Maybe it is something about my installed packages. I might try a complete reinstall of R and packages and see how that works. Will get back to you, thanks for the info.
Hello again @cderv . Ok so I did a complete fresh install (R and all packages) and it all worked fine. I downgraded, upgraded, deleted and reinstalled all the explicitly called ones for 2 hours earlier and nothing helped - must have been one of the dependencies that I hadn't tried updating I suppose. Sorry for wasting your time, but thank you - I wouldn't have been able to find the issue without you checking it works your end.
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.
Hello,
I have a dashboard for which I have been using the svg device for plots and thematic for automatic theming of the plots. It has worked fine but between the last generation of the dashboard (11th May) and now, something has broken. I've tried rolling back package versions of flexdashboard, knitr, rmarkdown, thematic, bslib, ggplot2, but I can't seem to find the culprit. Initially I posted an issue on the flexdashboard GH, but noticed that the same occurs if I change output to html_document, so presumably it's a more fundamental issue and this is a better place to post.
Here's an MWE illustrating the problem:
Chart A
Chart A
Checklist
When filing a bug report, please check the boxes below to confirm that you have provided us with the information we need. Have you:
[x] formatted your issue so it is easier for us to read?
[x] included a minimal, self-contained, and reproducible example?
[x] pasted the output from
xfun::session_info('rmarkdown')
in your issue?[x] upgraded all your packages to their latest versions (including your versions of R, the RStudio IDE, and relevant R packages)?
[x] installed and tested your bug with the development version of the rmarkdown package using
remotes::install_github("rstudio/rmarkdown")
?