Trying to run a shiny app on R Studio Connect. App justs displays an html widget from library(vitessceR) but while trying to run on the platform the app fails to load and I get the following log:
It looks like your app is trying to activate a Conda environment and launch its own R process--in general, what you'll want to do is push your code to Connect, which will take responsibility for restoring the R and Python environments and launching the processes.
Maybe I don't quite understand something. So if a library stands up its own conda environ on R Studio Connect , that library function will get terminated due to memory? How will I get that library to tell Connect to run its own Python environment?
Even if your project isn't using reticulate the directions may help.
You'll want to make sure your manifest contains both an r an python section, so that connect knows to rebuild both an r and python environment. You can generate the manifest locally with rsconnect::writeManifest()to inspect it before you deploy.
This will take some time to figure out.
The library that seems to be causing issues is Bioconductor - basilisk and I didn't even configure this library to run in this app. The app relies on vitessceR (github.com) which uses zellkonverter to parse its data into formats it can read/write from, BOTH of these use Basilisk to "freeze" python dependencies via Reticulate. So I don't know if that resource helps much because not only do I need to figure out how to manage conda environments for reticulate on RSC, without using reticulate, but also figure out which basilisk environment is causing the error (its probably both) . I'm starting by looking at what RSC needs to know from reticulate and figuring out what basilisk is telling reticulate to do.