GuangchuangYu / emojifont

:lollipop:Emoji and fontawesom in both base and ggplot2 graphics
https://guangchuangyu.github.io/emojifont/
67 stars 22 forks source link

Unable to load emojifont #10

Closed jblumenau closed 5 years ago

jblumenau commented 6 years ago

I'm having trouble loading emojifont:

> library(emojifont)
Error: package or namespace load failed for ‘emojifont’:
 .onLoad failed in loadNamespace() for 'sysfonts', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/Users/uctqebl/Library/R/3.4/library/sysfonts/libs/sysfonts.so':
  dlopen(/Users/uctqebl/Library/R/3.4/library/sysfonts/libs/sysfonts.so, 6): Library not loaded: /opt/X11/lib/libfreetype.6.dylib
  Referenced from: /Users/uctqebl/Library/R/3.4/library/sysfonts/libs/sysfonts.so
  Reason: image not found

Any idea what might be going on? Here's the sessionInfo:


> sessionInfo()
R version 3.4.1 (2017-06-30)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Sierra 10.12.6

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib

locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] emoGG_0.0.2          emo_0.0.0.9000       abind_1.4-5          rgdal_1.2-8          maptools_0.9-2      
 [6] sp_1.2-5             rgeos_0.3-23         jsonlite_1.5         rstan_2.16.2         StanHeaders_2.16.0-1
[11] ggplot2_2.2.1       

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.12     lubridate_1.6.0  lattice_0.20-35  png_0.1-7        assertthat_0.2.0 digest_0.6.12   
 [7] mime_0.5         R6_2.2.2         plyr_1.8.4       stats4_3.4.1     httr_1.3.1       rlang_0.1.2     
[13] lazyeval_0.2.0   curl_2.8.1       rstudioapi_0.7   miniUI_0.1.1     proto_1.0.0      labeling_0.3    
[19] devtools_1.13.3  stringr_1.2.0    foreign_0.8-69   RCurl_1.95-4.8   munsell_0.4.3    shiny_1.0.5     
[25] compiler_3.4.1   httpuv_1.3.5     pkgconfig_2.0.1  htmltools_0.3.6  tibble_1.3.4     gridExtra_2.2.1 
[31] crayon_1.3.4     dplyr_0.7.3      withr_2.0.0      bitops_1.0-6     grid_3.4.1       xtable_1.8-2    
[37] gtable_0.2.0     git2r_0.19.0     magrittr_1.5     scales_0.5.0     stringi_1.1.5    bindrcpp_0.2    
[43] tools_3.4.1      glue_1.1.1       purrr_0.2.3      inline_0.3.14    colorspace_1.3-2 memoise_1.1.0   
[49] knitr_1.17       bindr_0.1   ```

Thanks!
joseramoncajide commented 6 years ago

Same here!

GuangchuangYu commented 6 years ago

this is due to the issue of your sysfonts installation.

try:

require(sysfonts)
arvi1000 commented 5 years ago

I had this same issue (with both emojifont and sysfonts), and found I had to install Xquartz. Then the issue went away. Found that answer here, but reposting for the next person.