We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The handling of internal quotes passed to run() arguments looks different on Windows and Linux/Unix, needs to investigate more.
run()
Currently it was found because it breaks one test defined in: Env Var test
create_env(packages = c("r-base=4.1.3"), env_name = "condathis-test-env", verbose = "full")
The following Execution behaves normally on Windows:
This Example works on Windows
withr::with_envvar( new = list(`MY_VAR_1` = "HELLO FROM OUTSIDE"), code = { px_res <- run( "R", "-q", "-s", "-e", "print(Sys.getenv('MY_VAR_1'))", env_name = "condathis-test-env", verbose = "full" ) } )
But replacing the internal quotes of "print(Sys.getenv('MY_VAR_1'))" for 'print(Sys.getenv("MY_VAR_1"))', breaks on windows.
"print(Sys.getenv('MY_VAR_1'))"
'print(Sys.getenv("MY_VAR_1"))'
This example DO NOT work on windows
withr::with_envvar( new = list(`MY_VAR_1` = "HELLO FROM OUTSIDE"), code = { px_res <- run( "R", "-q", "-s", "-e", 'print(Sys.getenv("MY_VAR_1"))', env_name = "condathis-test-env", verbose = "full" ) } )
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The handling of internal quotes passed to
run()
arguments looks different on Windows and Linux/Unix, needs to investigate more.Currently it was found because it breaks one test defined in: Env Var test
The following Execution behaves normally on Windows:
But replacing the internal quotes of
"print(Sys.getenv('MY_VAR_1'))"
for'print(Sys.getenv("MY_VAR_1"))'
, breaks on windows.The text was updated successfully, but these errors were encountered: