How can I install R on Render?

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.

Thank you for any advice.