Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting different R_HOME for the callr subprocess #282

Open
maksymiuks opened this issue May 1, 2024 · 1 comment
Open

Setting different R_HOME for the callr subprocess #282

maksymiuks opened this issue May 1, 2024 · 1 comment

Comments

@maksymiuks
Copy link

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 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?

@gaborcsardi
Copy link
Member

Can you try to show an example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants