PB accès fichier R à l'installation du package rpy2 - Jupyter Notebook

Bonjour,
j’ai un utilisateur qui a du mal à installer le package rpy2 sur son Jupyter Notebook. Il en a besoin pour faire tourner son code en R. À l’installation du package, il a un problème d’accès aux fichiers de R.
Voici le message d’erreur, si vous avez une idée de solution pour lui. Merci d’avance.

[1000600000@jupyterhub-nb-david-2epenard-40agroparistech-2efr ~]$ pip install rpy2
Collecting rpy2
Downloading rpy2-3.5.12.tar.gz (217 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 217.8/217.8 KB 3.5 MB/s eta 0:00:00
Installing build dependencies … done
Getting requirements to build wheel … error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Unable to determine R home: [Errno 2] No such file or directory: ‘R’
cffi mode is CFFI_MODE.ANY
Looking for R home with: R RHOME
Unable to determine R home: [Errno 2] No such file or directory: ‘R’
R home found: None
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
[end of output]

A mon avis R n’est pas installé. Si il ouvre un terminal et qu’il tape R ?

Si R est installé. La commande

R.home(component = “home”)
lui donne la valeur de R_HOME

ensuite

env R_HOME=“…” pip install rpy2

Merci pour ta réponse rapide. Je vais voir avec l’utilisateur l’état de R.