I'm trying to spin a new callr process that is different from the default R_HOME value. In general, I want my subprocess to operate on the different base library (alternative location for .Library), and for that, it has to start with a different R_HOME value. Unfortunately, whenever I try to set R_HOME for the caller subprocess, it does not work. It does not matter for my use case whether I use default or alternative R executable, so I tried using the arch parameter, but seemingly still the default R_HOME was used. Is there a way to achieve such replacement in the callr?
Hi
I'm trying to spin a new callr process that is different from the default R_HOME value. In general, I want my subprocess to operate on the different base library (alternative location for .Library), and for that, it has to start with a different
R_HOME
value. Unfortunately, whenever I try to setR_HOME
for the caller subprocess, it does not work. It does not matter for my use case whether I use default or alternative R executable, so I tried using thearch
parameter, but seemingly still the defaultR_HOME
was used. Is there a way to achieve such replacement in thecallr
?