Hi everyone,
I'm running into an error in my Shiny app and wondered if I could get some extra eyes on the issue.
The reproducible code is on Github:
https://github.com/hepplerj/midwest-map-population I am working on an interactive map of demographic change, and have one aspect of the map working fine (change in city population), but am struggling with an error in the choropleth I'm trying to create. I think the problem is either my
draw_demographics() function, or an issue with my
demographics_filtered() reactive (or both?)
Error stack:
> runApp()
Listening on http://127.0.0.1:4240
Parsed with column specification:
cols(
id = col_integer(),
st = col_character(),
city = col_character(),
cityst = col_character(),
county_name = col_character(),
year = col_integer(),
population = col_integer(),
lat = col_double(),
lng = col_double()
)
`stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
Warning: Error in derivePolygons: argument "data" is missing, with no default
Stack trace (innermost first):
75: derivePolygons
74: addPolygons
73: function_list[[k]]
72: withVisible
71: freduce
70: _fseq
69: eval
68: eval
67: withVisible
66: %>%
65: draw_demographics [helpers.R#41]
64: function_list[[k]]
63: withVisible
62: freduce
61: _fseq
60: eval
59: eval
58: withVisible
57: %>%
56: observerFunc [/Users/jheppler/Dropbox/github/midwest-map-population/server.R#116]
1: runApp
ERROR: [on_request_read] connection reset by peer Happy to answer questions, or take pointers on ways to troubleshoot. Thanks ahead of time!