Skip to content

Commit

Permalink
Use --vanilla when running R code, on Linux & sudo
Browse files Browse the repository at this point in the history
Closes #120.
  • Loading branch information
gaborcsardi committed Sep 20, 2022
1 parent 8e4382a commit d247e92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

* rig now always runs non-interactively on Linux from a root shell (#117).

* rig now always uses `--vanilla` when running R (#120).

* rig now detects Deepin Linux as Debian (#111).

# rig 0.5.1
Expand Down
2 changes: 1 addition & 1 deletion src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ fn r_sudo(version: &str, command: &str, user: &User)
run(
"su".into(),
vec![username.into(), "--".into(), rbin.into(), "-s".into(),
"-e".into(), command.into()],
"--vanilla".into(), "-e".into(), command.into()],
&("R ".to_string() + version)
)
}
Expand Down

0 comments on commit d247e92

Please sign in to comment.