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

fontawesome() Hyphen Inclusion Reference Issue #20

Open
YUSUF-KHAN1 opened this issue Sep 24, 2018 · 0 comments
Open

fontawesome() Hyphen Inclusion Reference Issue #20

YUSUF-KHAN1 opened this issue Sep 24, 2018 · 0 comments

Comments

@YUSUF-KHAN1
Copy link

Session info -----------------------------------------------------------------------------------------------------
setting value
version R version 3.4.3 (2017-11-30)
system x86_64, mingw32
ui RStudio (1.1.453)
language (EN)
collate English_United States.1252
tz America/New_York
date 2018-09-24

This code runs successfully:

windows()
fa <- fontawesome(rep('fa-github',20))
d <- data.frame(x=rnorm(20),
y=rnorm(20),
label=fa)

ggplot(d, aes(x, y, color=label, label=label)) +
geom_text(family='fontawesome-webfont', size=6)+
xlab(NULL)+ylab(NULL) +
theme(legend.text=element_text(family='fontawesome-webfont'))
#######################################################################
When the argument passed to the fontawesome function includes a hyphen then it does not run. The error occurs with the fontawesome function:

fa <- fontawesome(rep('fa-jedi-order',20))
Invalid: fa-jedi-order, fa-jedi-order,[...]

Only thing changed from first set of code was 'fa-github' >> 'fa-jedi-order'
I've tried variations of removing the second hyphen for an underscore, space, period.

Thanks

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

1 participant