Skip to content

Commit d764e78

Browse files
Remove unused internal utility: calls_sys()
1 parent 1088ede commit d764e78

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

R/utils.R

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -93,22 +93,6 @@ is_windows <- function() {
9393
identical(.Platform$OS.type, "windows")
9494
}
9595

96-
#' Invoke a system command
97-
#'
98-
#' Wraps a system command into [shell()] or [system()], depending on the
99-
#' operating system.
100-
#' @param sys_call The call to be executed.
101-
#' @param ... Arguments passed to [shell()] or [system()].
102-
#' @keywords internal
103-
calls_sys <- function(sys_call, ...) {
104-
if (is_windows()) {
105-
error <- shell(sys_call, ...)
106-
} else {
107-
error <- system(sys_call, ...)
108-
}
109-
error
110-
}
111-
11296
#' Get the value of an option
11397
#'
11498
#' Basically a `getOptions()` that fails fast by default.

man/calls_sys.Rd

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)