You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Produced chart:
Note: this chart will be absolutely fine when rendered with svglite directly.
Proposed solution
The issue is caused by using a pdf device at the time of calling evaluate() in eng_r(), if chunk device was set to svglite.
A change to chunk_device() to support svglite device seems to fix this and produces a report with no warnings and no visual issues. I will provide a PR for this.
Issue is reproducible to me under macOS and Ubuntu
I have provided the necessary information about my issue.
If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('knitr'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('yihui/knitr').
If I have posted the same issue elsewhere, I have also mentioned it in this issue.
I have learned the Github Markdown syntax, and formatted my issue correctly.
I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered:
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.
Using custom fonts with svglite device (with
{systemfonts}
, rather than loading them via{extrafont}
) leads to issues:ggtext::geom_richtext
produce unexpected results.Example
In my example I used Montserrat font (can be installed as system font from google fonts).
An .rmd like one bellow will produce warnings as one above and text in the chart will be rendered incorrectly.
Produced chart:
Note: this chart will be absolutely fine when rendered with
svglite
directly.Proposed solution
The issue is caused by using a pdf device at the time of calling
evaluate()
ineng_r()
, if chunk device was set to svglite.A change to
chunk_device()
to supportsvglite
device seems to fix this and produces a report with no warnings and no visual issues. I will provide a PR for this.Issue is reproducible to me under macOS and Ubuntu
Session info
By filing an issue to this repo, I promise that
xfun::session_info('knitr')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('yihui/knitr')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: