Hello. I have tried almost everything to fix this, and have spent a couple weeks writing this (I hadn't written a shiny app in 9 years--happy to see all the advancements!), and days looking for a solution. I developed a shiny app that uses the magick package to produce user generated images. It works exactly as intended locally. You can run it from your console (I think--I can anyway) with the runGitHub function:
runGitHub('yurtzzle-website-shiny','pcmckann')
I believe that you can see the public code on github, if not, I can amend this post with the code. It doesn't display in the RStudio pop-up (another clue?), but does display when you click the 'Open in Web Browser' button.
I then made an EC2 instance on AWS and deployed the app to the server (also brand new to me). The app partially displays on the server but will not display any of the images.
Here is the error as seen in the log files on the server:
Listening on http://127.0.0.1:41249
Warning: Error in if: argument is of length zero
99: session$fileUrl
98: transform
97: func
95: f
94: Reduce
85: do
84: hybrid_chain
83: renderFunc
82: output$roof
1: runApp
I will have hundreds of images in the final version of this, so I put them into subfolders in the www folder. I am guessing that if I dump all of them into the www folder, eliminating the subfolders in www, that this will fix it. But I really don't know if that's the problem, and if I can avoid that re-write, I will. I've just reached that certain point where I would love another pair of eyes on this.
If you see an easier fix, please let me know. Thanks for your help.