tylermorganwall / rayshader

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

Numerous deprecation warnings from RGL. #272

Closed beroe closed 1 year ago

beroe commented 1 year ago

Is your feature request related to a problem? Please describe. Even if I run a basic demo example using monterey bay, plot_3d generates a bunch of deprecation warnings. (See RGL and rayshader versions below.) This is with a M2 Apple Silicon mac laptop.

Warning messages:                              
1: 'rgl.surface' is deprecated.
Use 'surface3d' instead.
2: 'rgl.viewpoint' is deprecated.
Use 'view3d' instead. 
3: 'rgl.surface' is deprecated.
Use 'surface3d' instead.
4: 'rgl::rgl.material' is deprecated.
Use 'material3d' instead.
5: 'rgl.triangles' is deprecated.
Use 'triangles3d' instead.

Describe the solution you'd like Most of the issues I've seen involve RGL versions that are outdated, but in this case if seems like it is too new?

Session Info

R version 4.2.1 (2022-06-23)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Ventura 13.2

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils    
[5] datasets  methods   base     

other attached packages:
[1] rayrender_0.29.4  rayshader_0.24.10
[3] rgl_1.0.1         oce_1.7-10       
[5] gsw_1.1-1         PrettyCols_1.0.0 
[7] terra_1.6-17      elevatr_0.4.2    
[9] tanaka_0.3.0     
tylermorganwall commented 1 year ago

These are fixed in the github version: update and install via github to remove the warnings.

install.packages("remotes")
remotes::install_github("tylermorganwall/rayshader")
beroe commented 1 year ago

Thanks @tylermorganwall I was having trouble installing from source, but installing by remotes seemed to work.