Skip to content

Commit

Permalink
Split on ; for Windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel- committed Nov 25, 2024
1 parent 28ecf49 commit 93e2158
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/ark/src/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,12 +381,12 @@ impl RMain {
r_command(|command| {
// From https://github.com/rstudio/rstudio/blob/74696236/src/cpp/core/r_util/REnvironmentPosix.cpp#L506-L515
command.arg("--vanilla").arg("-s").arg("-e").arg(
r#"cat(paste(R.home('share'), R.home('include'), R.home('doc'), sep=':'))"#,
r#"cat(paste(R.home('share'), R.home('include'), R.home('doc'), sep=';'))"#,
);
})
{
if let Ok(vars) = String::from_utf8(output.stdout) {
let vars: Vec<&str> = vars.trim().split(':').collect();
let vars: Vec<&str> = vars.trim().split(';').collect();
if vars.len() == 3 {
// Set the R env vars as the R shell script frontend would
unsafe {
Expand Down

0 comments on commit 93e2158

Please sign in to comment.