#=====================================================================#
# This is code to create: rayshader error
# Authored by and feedback to: mjfrigaard
# MIT License
# Version: 1.0
#=====================================================================#
# error -------------------------------------------------------------------
# Error: package or namespace load failed for ‘rayshader’ in dyn.load(file,
# DLLpath = DLLpath, ...):
# unable to load shared object '/Library/Frameworks/R.framework/Versions/3.6/
# Resources/library/imager/libs/imager.so': dlopen(/Library/Frameworks/
# R.framework/Versions/3.6/Resources/library/imager/libs/imager.so, 6):
# Library not loaded: /opt/X11/lib/libX11.6.dylib Referenced from: /Library/
# Frameworks/R.framework/Versions/3.6/Resources/library/imager/libs/imager.so
# Reason: image not found
# install ----
install.packages("rayshader")
#>
#> The downloaded binary packages are in
#> /var/folders/fl/kv1bdvrx04524bnvdzhfx3p80000gn/T//RtmpMeZHjb/downloaded_packages
# load
library(rayshader)
This downloaded and installed for me, but it's likely an issue with X11. Install it with homebrew using brew cask install xquartz
Created on 2019-10-11 by the reprex package (v0.3.0)