Skip to content

Commit 5049496

Browse files
committed
Vectorized miraiLaunchCmd print method
1 parent 0b39f8b commit 5049496

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

R/launchers.R

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -557,9 +557,7 @@ local_url <- function(tcp = FALSE, port = 0) {
557557
#' @export
558558
#'
559559
print.miraiLaunchCmd <- function(x, ...) {
560-
for (i in seq_along(x)) {
561-
cat(sprintf("[%d]\n%s\n\n", i, x[i]), file = stdout())
562-
}
560+
cat(sprintf("[%d]\n%s\n", seq_along(x), x), file = stdout(), sep = "\n")
563561
invisible(x)
564562
}
565563

0 commit comments

Comments
 (0)