Skip to content

Commit

Permalink
test for root
Browse files Browse the repository at this point in the history
  • Loading branch information
cboettig committed Feb 6, 2025
1 parent bbee623 commit 6c07a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rprofile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
local({

has_sudo <- function() {
system("sudo -n true", intern = TRUE) == 0
0 == system2("sudo", "-n true", stderr = FALSE, stdout = FALSE)
}

# Only use Runiverse if we don't have sudo
Expand Down

0 comments on commit 6c07a4a

Please sign in to comment.