Thank you so much for your quick and informative answer!
I'm actually using Fortran.
I think it might be an issue with the .dll file instead of an .so file, since shinyapps runs from Linux. I'm trying to put together the app and program from WSL2 and see if that works.
Thanks again,
Erin