| 1 |
|
| 2 |
renv_session_quiet <- function() { |
| 3 |
|
| 4 |
args <- commandArgs(trailingOnly = FALSE) |
| 5 |
|
| 6 |
index <- match("--args", args) |
| 7 |
if (!is.na(index)) |
| 8 |
args <- head(args, n = index - 1L) |
| 9 |
|
| 10 |
quiet <- c("-s", "--slave", "--no-echo") |
| 11 |
any(quiet %in% args) |
| 12 |
|
| 13 |
} |