Hello, I've set up and been toying around with a Shiny App. Basically, my app opens up a leaflet map, and adds markers onto it with some data. This is a screenshot of what it looks like after deployment:
As you can see, the leaflet simply does not render. It does render when I launch the app from my laptop however.
The log from the ShinyApps settings dashboard shows no indication of anything being wrong:
2025-01-17T03:29:23.936608+00:00 shinyapps[13728694]: RJSONIO version: (none)
2025-01-17T03:29:23.941345+00:00 shinyapps[13728694]: htmltools version: 0.5.8.1
2025-01-17T03:29:23.945979+00:00 shinyapps[13728694]: reticulate version: (none)
2025-01-17T03:29:23.950678+00:00 shinyapps[13728694]: Using pandoc: /opt/connect/ext/pandoc/2.16
2025-01-17T03:29:23.956494+00:00 shinyapps[13728694]:
2025-01-17T03:29:23.961381+00:00 shinyapps[13728694]: Starting R with process ID: '31'
2025-01-17T03:29:23.966432+00:00 shinyapps[13728694]: Shiny application starting ...
2025-01-17T03:29:23.971253+00:00 shinyapps[13728694]: Linking to GEOS 3.10.2, GDAL 3.4.1, PROJ 8.2.1; sf_use_s2() is TRUE
2025-01-17T03:29:23.975900+00:00 shinyapps[13728694]: terra 1.8.10
2025-01-17T03:29:23.982108+00:00 shinyapps[13728694]: Loading required package: sp
2025-01-17T03:29:23.986856+00:00 shinyapps[13728694]: Please note that rgdal will be retired during October 2023,
2025-01-17T03:29:23.991546+00:00 shinyapps[13728694]: plan transition to sf/stars/terra functions using GDAL and PROJ
2025-01-17T03:29:23.996511+00:00 shinyapps[13728694]: at your earliest convenience.
2025-01-17T03:29:24.001551+00:00 shinyapps[13728694]: See sp evolution status: examples of migration from retiring packages and GitHub - r-spatial/evolution: Preparing CRAN for the retirement of rgdal, rgeos and maptools
2025-01-17T03:29:24.006370+00:00 shinyapps[13728694]: rgdal: version: 1.6-7, (SVN revision 1203)
2025-01-17T03:29:24.011730+00:00 shinyapps[13728694]: Geospatial Data Abstraction Library extensions to R successfully loaded
2025-01-17T03:29:24.016678+00:00 shinyapps[13728694]: Loaded GDAL runtime: GDAL 3.4.1, released 2021/12/27
2025-01-17T03:29:24.021453+00:00 shinyapps[13728694]: Path to GDAL shared files: /usr/share/gdal
2025-01-17T03:29:24.026085+00:00 shinyapps[13728694]: GDAL binary built with GEOS: TRUE
2025-01-17T03:29:24.030949+00:00 shinyapps[13728694]: Loaded PROJ runtime: Rel. 8.2.1, January 1st, 2022, [PJ_VERSION: 821]
2025-01-17T03:29:24.035629+00:00 shinyapps[13728694]: Path to PROJ shared files: /home/shiny/.local/share/proj:/usr/share/proj
2025-01-17T03:29:24.040344+00:00 shinyapps[13728694]: PROJ CDN enabled: TRUE
2025-01-17T03:29:24.045377+00:00 shinyapps[13728694]: Linking to sp version:2.1-4
2025-01-17T03:29:24.050451+00:00 shinyapps[13728694]: To mute warnings of possible GDAL/OSR exportToProj4() degradation,
2025-01-17T03:29:24.057091+00:00 shinyapps[13728694]: use options("rgdal_show_exportToProj4_warnings"="none") before loading sp or rgdal.
2025-01-17T03:29:24.061916+00:00 shinyapps[13728694]:
2025-01-17T03:29:24.066805+00:00 shinyapps[13728694]: Attaching package: ‘rgdal’
2025-01-17T03:29:24.071708+00:00 shinyapps[13728694]:
2025-01-17T03:29:24.076349+00:00 shinyapps[13728694]: The following object is masked from ‘package:terra’:
2025-01-17T03:29:24.080874+00:00 shinyapps[13728694]:
2025-01-17T03:29:24.086428+00:00 shinyapps[13728694]: project
2025-01-17T03:29:24.092363+00:00 shinyapps[13728694]:
2025-01-17T03:29:24.096996+00:00 shinyapps[13728694]: Reading layer FED_A_FINAL_REPORT_BC' from data source 2025-01-17T03:29:24.105008+00:00 shinyapps[13728694]:
/srv/connect/apps/ethnocultural_origins_in_bc/shapes_feds/BC/SHAPEFILE/FED_A_FINAL_REPORT_BC.shp'
2025-01-17T03:29:24.109674+00:00 shinyapps[13728694]: using driver ESRI Shapefile' 2025-01-17T03:29:24.114467+00:00 shinyapps[13728694]: Simple feature collection with 43 features and 7 fields 2025-01-17T03:29:24.119430+00:00 shinyapps[13728694]: Geometry type: POLYGON 2025-01-17T03:29:24.131067+00:00 shinyapps[13728694]: Dimension: XY 2025-01-17T03:29:24.137340+00:00 shinyapps[13728694]: Bounding box: xmin: 3658201 ymin: 1709522 xmax: 4723366 ymax: 3539818 2025-01-17T03:29:24.142165+00:00 shinyapps[13728694]: Projected CRS: PCS_Lambert_Conformal_Conic 2025-01-17T03:29:32.849610+00:00 shinyapps[13728694]: 2025-01-17T03:29:32.854395+00:00 shinyapps[13728694]: Listening on http://127.0.0.1:42511 2025-01-17T03:29:34.843074+00:00 shinyapps[13728694]: Reading layer
FED_A_FINAL_REPORT_BC' from data source
2025-01-17T03:29:34.848065+00:00 shinyapps[13728694]: /srv/connect/apps/ethnocultural_origins_in_bc/shapes_feds/BC/SHAPEFILE/FED_A_FINAL_REPORT_BC.shp' 2025-01-17T03:29:34.852853+00:00 shinyapps[13728694]: using driver
ESRI Shapefile'
2025-01-17T03:29:34.857495+00:00 shinyapps[13728694]: Simple feature collection with 43 features and 7 fields
2025-01-17T03:29:34.862418+00:00 shinyapps[13728694]: Geometry type: POLYGON
2025-01-17T03:29:34.867246+00:00 shinyapps[13728694]: Dimension: XY
2025-01-17T03:29:34.872135+00:00 shinyapps[13728694]: Bounding box: xmin: 3658201 ymin: 1709522 xmax: 4723366 ymax: 3539818
2025-01-17T03:29:34.877070+00:00 shinyapps[13728694]: Projected CRS: PCS_Lambert_Conformal_Conic
Here is a list of the things which I have tried:
- Ensured that all paths are contained within the app's folders.
- Ensured that the file names are all within the correct length
- I have maximized whatever I could find in the app's settings--eg, the StartupTimeout
- I have also updated all of the packages in my R installation.
The size of the files on my computer is ~490 MB. Could this be the source of the problem? Is there a way around it without having to pay?
Many thanks!