Conda run -n env_name ignores the environments R_HOME variable

Hei Conda people

I have created a conda env for a certain tool, which depends on R. When I’m trying to run the tool as follows:
conda run env_name tool_name
I get the foloowing warning: “ignoring environment value of R_HOME”.
Needless to say that my tool does not run, because it does not have access to R version in its own environment.

Any ideas as of why this happens and how to fix it?

thank you

Does the tool work if you activate the environment first?

$ conda activate env_name
$ tool_name