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

Use withr::with_envvar() to enhance whole project #4

Open
psychelzh opened this issue Feb 24, 2024 · 0 comments
Open

Use withr::with_envvar() to enhance whole project #4

psychelzh opened this issue Feb 24, 2024 · 0 comments

Comments

@psychelzh
Copy link
Member

withr::with_envvar() will set environmental variables, which could be accessed by both R and system.

withr::with_environment(
rlang::as_environment(argv[-1]),
rlang::exec(paste0("commit_", context), jobs)
)

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

1 participant