pkgnet
pkgnet copied to clipboard
CreatePackageReport() fails with errors about loading some compiled libraries
I'm unsure of the exact issue, but the following code
pkg_name <- YOUR_PACKAGE_NAME
CreatePackageReport(
pkg_name
, report_path = file.path(getwd(), "report.html")
)
Yields an error like the following on the Function Network tab (generated by FunctionReporter
):
## Error in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/Library/Frameworks/R.framework/Versions/3.5/Resources/library/gdtools/libs/gdtools.so':
## dlopen(/Library/Frameworks/R.framework/Versions/3.5/Resources/library/gdtools/libs/gdtools.so, 6): Library not loaded: /opt/X11/lib/libcairo.2.dylib
## Referenced from: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/gdtools/libs/gdtools.so
## Reason: image not found
I saw this error for the following:
-
gdtools
-
ggiraph
The error is slightly longer when running for RGtk2
, but I think it's the same root cause
## Error in dyn.load(file, DLLpath = DLLpath, ...) :
## unable to load shared object '/Library/Frameworks/R.framework/Versions/3.5/Resources/library/RGtk2/libs/RGtk2.so':
## dlopen(/Library/Frameworks/R.framework/Versions/3.5/Resources/library/RGtk2/libs/RGtk2.so, 6): Library not loaded: /Library/Frameworks/GTK+.framework/Versions/2.24.X11/Resources/lib/libgtk-x11-2.0.0.dylib
## Referenced from: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RGtk2/libs/RGtk2.so
## Reason: image not found
## Please install GTK+ from http://r.research.att.com/libs/GTK_2.24.17-X11.pkg
## If the package still does not load, please ensure that GTK+ is installed and that it is on your PATH environment variable
## IN ANY CASE, RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN
discovered via the code in #252