I created an R markdown document with various leaflet maps that have rasters in them.
The html file weights about 26mb, when I try to upload it to Rpubs I get the error:
Error in curl::curl_fetch_memory(url, handle = handle) : Failure when receiving data from the peer Calls: <Anonymous> ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> Timing stopped at: 0.05 0.04 85.86 Execution halted
It seems the same problem raised here https://community.rstudio.com/t/rpubs-error-in-curl-curl-fetch-memory-url-handle-handle-failure-when-receiving-data-from-the-peer/77323
I already tried simplifying the st_geometries, but the problem is on the raster side that I shouldnt reduce.
When I comment some of the maps and the html file weights about 10mb, the Rpubs upload works properly.
Is there a way to upload such heavy files to Rpubs or similar free platform?