Skip to content

R_PROFILE_USER cannot be set in env for callr::r #193

@MilesMcBain

Description

@MilesMcBain
callr::r(
    function() {
    print(Sys.getenv("MY_ENV"))
    print(Sys.getenv("R_PROFILE_USER"))
    },
    user_profile = TRUE,
    env = c(
        "R_PROFILE_USER" = "~/.Rprofile",
        "MY_ENV" = "MILES"
    ),
    show = TRUE
)
#> [1] "MILES"
#> [1] ""
#> [1] ""

Created on 2021-03-31 by the reprex package (v0.3.0)

I was expecting this to work, in combination with user_profile = TRUE so that I could set the profile for the session to a specific file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions