Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX and RStudio problem #5

Closed
neuwirthe opened this issue May 31, 2016 · 1 comment
Closed

OSX and RStudio problem #5

neuwirthe opened this issue May 31, 2016 · 1 comment

Comments

@neuwirthe
Copy link

neuwirthe commented May 31, 2016

OK, I did more detailed investigations.
The packages works with the quartz device in OSX.

library(emojifont)
load.emojifont('OpenSansEmoji.ttf')
set.seed(123)
x <- rnorm(10)
set.seed(321)
y <- rnorm(10)
plot(x, y, cex=0)
text(x, y, labels=emoji('cow'), cex=1.5, col='steelblue', family='OpenSansEmoji')

When I try to knit it in RStudio, I get a warning:

Warning in text.default(x, y, labels = emoji("cow"), cex = 1.5, col =
"steelblue", : no font could be found for family "OpenSansEmoji"


When I source R code in RStudio an explicitly use the quartz device, it works,

But with RStudio's own graphics device, it does not work.

@GuangchuangYu
Copy link
Owner

this is a known issue, see the limitation session in the vignette, https://cran.r-project.org/web/packages/emojifont/vignettes/emojifont.html#limitation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants