flextable package is not working

library(flextable)
Error: package or namespace load failed for 'flextable' in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/systemfonts/libs/systemfonts.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/systemfonts/libs/systemfonts.so, 6): Library not loaded: /opt/X11/lib/libfreetype.6.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.6/Resources/library/systemfonts/libs/systemfonts.so
Reason: image not found

when i load the package, console presents this message. What it means???

It seems like you are missing a dependency, try installing this.

install.packages('systemfonts')

Thanks for your solution! But it is still not working.

Do you get any different error message after installing that package?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.