Within a shiny app i have a reactive data frame which calls an API every 10 seconds. Every time the API is called and the new data frame is initialized with new data i want the abv column to be stored into a new list
beer = reactive({
invalidateLater(10000)
beer = jsonlite::fromJSON("https://api.punkapi.com/v2/beers/random", flatten = T) %>%
tibble() %>%
select(name, abv, description)
})
This list must somehow be also reactive and be updated every time an API call is received. I basically want end up with a list from which i can plot the different values for abv i get from the consecutive API calls. How would i do this?