Skip to content

Setting different R_HOME for the callr subprocess #282

@maksymiuks

Description

@maksymiuks

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    reprexneeds a minimal reproducible example

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions