One option, if you don't need real-time data, would be to cache the data in advance using an scheduled r script and make your app to use that data instead.
One option, if you don't need real-time data, would be to cache the data in advance using an scheduled r script and make your app to use that data instead.