Skip to content

Commit

Permalink
Fix R_HOME joining
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel- committed Nov 25, 2024
1 parent a92c52a commit 55b6d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/harp/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ where
// If `R_HOME` is defined use that
let locations = COMMAND_R_LOCATIONS.map(|loc| {
if let Ok(r_home) = std::env::var("R_HOME") {
std::path::Path::new(&r_home).join(loc)
std::path::Path::new(&r_home).join("bin").join(loc)
} else {
std::path::Path::new(loc).to_path_buf()
}
Expand Down

0 comments on commit 55b6d60

Please sign in to comment.