Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upshowtext and RStudioGD #7
Comments
|
I guess it's a bit complicated. RStudio's internal graphics device actually consists of two devices: one used to fast preview and the other for the real rendering of graphics. |
|
I see, that's too bad. Can you think of any solution or should I close this down? |
|
I would keep it as an open issue, which reminds me of this problem. |
|
Any update on this issue? |
|
@benjaminrobinson I apologize for my non-response. I haven't found a way to solve this issue yet, so you still need to manually open new graphics devices to make |
|
Hi All, I just figured out a workaround for this issue. The solution is actually simple: before you create plots, run the following code in the RStudio session: trace(grDevices::png, exit = quote({
showtext::showtext_begin()
}), print = FALSE)Note that this will enable untrace(grDevices::png)Please let me know if this works for you. |
|
The new version (0.9) has already solved this issue. |
showtextdoes not work with RStudio's built-in graphics device, despite working flawlessly withwindows(). It might for example look like this:This is a known issue, but has not yet been fixed.