Hello, is there any guide on how to install R on render?
In my Dash app (which is in Python) I have rpy2~=3.5.15, but deploy failed on: Error: rpy2 in API mode cannot be built without R in the PATH or R_HOME defined. Correct this or force ABI mode-only by defining the environment variable RPY2_CFFI_MODE=ABI
Within the Dash app, I’m using subprocess to generate RMarkdown pdf file. Locally it works fine, but when I deploy it, nothing happens.
I’m not familiar with Render, but you can get this working with Ploomber, as it allows you to deploy a Dockerfile (and you can install both Python and R in the Docker image).
It might require a bit of experimentation to get everything working, but it’s possible. I’ve deployed Python apps with complex dependencies this way.
Deploying an app that uses rpy2 on Render requires you to ensure that R is installed and accessible within the environment. Render is a cloud platform that supports various types of applications, and you will need to configure your environment to include R and set up the necessary environment variables.
If you are interested to this step by step guide just let me know!