USAID-OHA-SI / glitr

SI graphics package to adorn your ggplots
https://usaid-oha-si.github.io/glitr/
Other
27 stars 4 forks source link

Build failure bug located #67

Closed tessam30 closed 1 year ago

tessam30 commented 2 years ago

When building, the following error prevents the package from loading.


 .onLoad failed in loadNamespace() for 'glitr', details:
  call: FUN(X[[i]], ...)
  error: invalid Quartz font:  must be 4 strings

This error appears to be caused due to the following:

``` if(.Platform$OS.type == "unix" && ssp_exists){
    grDevices::quartzFonts(glitr_font_default = c("Source Sans Pro"))
    return(invisible())
  }

This is located here: https://github.com/USAID-OHA-SI/glitr/blob/main/R/utils.R#L54-L57 in the utils.R file.

Not sure what the solution is. Just found the likely cause of the error.
tessam30 commented 2 years ago

The dev branch is updated with a patch for now -- that simply ignores these lines. Need to figure out what the root cause of the build error is within these lines.

achafetz commented 2 years ago

Replacement for ln 60 in utils.R - grDevices::quartzFonts(glitr_font_default = grDevices::quartzFont(rep("Helvetica", 4)))

tessam30 commented 1 year ago

This was resolved, but cannot remember how/why/what we did. I think it was something to do w/ the CI settings in the .yaml file.