I have a shinyapp, and it runs great locally. The app uses 7 fixed data matrices(~1GB/each) and calculates the outputs based on the user's query inputs.
In my local machine, I load the 7 data matrix into the "global environment", and then run shinyapp directly. Everything is fine and the app loads fast.
Then, I tried to upload my app to shinyapp.io. I met 2 issues:
When I put those 7 Rdata files in my App folder and run "deployApp", I got this error:
Error in force(code) : Could not upload file.
I already bought the Basic plan, which should allow a max of 8GB ram. When I remove those 7 Rdata files, I could deploy my App. But the app did not work because no data loaded.
If I include:
in my app.R file, the App will load very slowly. What could I do to preload those 7 data matrices into the shinyapps.io server as global variables just like what I did locally?
Thank you very much,