tylermorganwall / rayshader

R Package for 2D and 3D mapping and data visualization
https://www.rayshader.com/
2.06k stars 214 forks source link

Unable to successfully install rayshader from GitHub or CRAN #86

Closed mattwarkentin closed 4 years ago

mattwarkentin commented 4 years ago

Hi Tyler,

I have tried many ways to install rayshader. First, I tried to get install the GitHub version so that I had access to the most up-to-date version, but this failed:

remotes::install_github('tylermorganwall/rayshader')
ERROR: lazy loading failed for package ‘rayshader’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rayshader’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rayshader’
Error: Failed to install 'rayshader' from GitHub:
  (converted from warning) installation of package ‘/var/folders/1q/l_382_ss2973kpyqn0sk_0lw0000gn/T//RtmpO4lurM/file433950fd11a2/rayshader_0.13.1.tar.gz’ had non-zero exit status

I have not been able to yet troubleshoot the above error.

So I tried instead to download the CRAN version:

install.packages('rayshader')

This seemingly installed successfully, but when loading the package:

library(rayshader)
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

Seems to be an issue with the imager package, which I have removed and installed a few times but hasn't seemed to help.

sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Mojave 10.14.6
tylermorganwall commented 4 years ago

Install XQuartz https://www.xquartz.org

see previous issue: https://github.com/tylermorganwall/rayshader/issues/5

mattwarkentin commented 4 years ago

Yikes, sorry about that. Installing XQuartz totally fixed it. New computer, forgot to install it when I set everything up.

Thanks.