neilcharles / geoviz

Functions to make it easy to process DEM data and add GPS traces to rstats Rayshader scenes, and to overlay mapbox and elevation shading imagery
http://www.hilltop-analytics.com
103 stars 11 forks source link

image missing and error during runtime #46

Open monaw opened 1 month ago

monaw commented 1 month ago

i was able to install the required packages and run the code in RStudio but the image is missing:

Screenshot 2024-07-26 at 7 35 48 PM

when i clicked on "Island Maps: Rayshader", I got this runtime error:

Warning: Error in if: argument is of length zero
  98: shinyRenderWidget [/Users/mona/SDSC/SEG/hawaii/app.R#130]
  97: func
  84: renderFunc
  83: renderFunc
  82: output$plot5
   1: runApp
Warning: 'rgl.close' is deprecated.
Use 'close3d' instead.
See help("Deprecated")
Error in rgl.close() : No device opened
Warning: GEOS support is provided by the sf and terra packages among others
Warning: Error in rgeos::gBuffer: length(width) == 1 is not TRUE
  106: <Anonymous>
  105: stop
  104: stopifnot
  103: rgeos::gBuffer
  102: square_bounding_box
  101: slippy_raster
  100: mapzen_dem
   99: rayshade_me [/Users/mona/SDSC/SEG/hawaii/app.R#20]
   98: shinyRenderWidget [/Users/mona/SDSC/SEG/hawaii/app.R#135]
   97: func
   84: renderFunc
   83: renderFunc
   82: output$plot5
    1: runApp

and the UI looks like this:

Screenshot 2024-07-26 at 7 37 12 PM

what did i miss?