Error: Library not loaded, image not found

I installed the new version of R (3.6.1) as package compareGroups did not work. Then I installed all my packages again. Now when I try to use the package, I get the following error:
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/systemfonts/libs/':
dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/systemfonts/libs/, 6): Library not loaded: /opt/X11/lib/libfreetype.6.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.6/Resources/library/systemfonts/libs/
Reason: image not found
I am not sure what the problem is. Any ideas on how to solve it?
Many thanks!