Warning messages:
1: In grSoftVersion() :
  unable to load shared object '/Library/Frameworks/R.framework/Resources/modules//R_X11.so':
  dlopen(/Library/Frameworks/R.framework/Resources/modules//R_X11.so, 6): Library not loaded: /opt/X11/lib/libSM.6.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/modules/R_X11.so
  Reason: image not found
2: In cairoVersion() :
  unable to load shared object '/Library/Frameworks/R.framework/Resources/library/grDevices/libs//cairo.so':
  dlopen(/Library/Frameworks/R.framework/Resources/library/grDevices/libs//cairo.so, 6): Library not loaded: /opt/X11/lib/libXrender.1.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/library/grDevices/libs/cairo.so
  Reason: image not found
3: In svg(paste(figPath, id, ".svg", sep = ""), width = 11.69, height = 8.27) :
  failed to load cairo DLL
4: In svg(paste(figPath, id, ".svg", sep = ""), width = 11.69, height = 8.27) :
  failed to load cairo DLL
5: In svg(paste(figPath, id, ".svg", sep = ""), width = 11.69, height = 8.27) :
  failed to load cairo DLL
