Skip to content

Commit ed04963

Browse files
committed
nicer daemon() argument ordering
1 parent 6a56fd9 commit ed04963

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Removal of mirai v1 compatibility features:
88
+ `saisei()` is now removed as no longer required.
99
+ `daemons()` dispatcher argument "thread" is removed.
10-
+ `daemons()` dispatcher arguments "process" and "thread" are formally deprecated and will be removed in a future version.
10+
+ `daemons()` dispatcher arguments "process" and "none" are formally deprecated and will be removed in a future version.
1111

1212
#### Updates
1313

R/daemons.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,10 +505,10 @@ parse_tls <- function(tls)
505505
libp <- function(lp = .libPaths()) lp[file.exists(file.path(lp, "mirai"))][1L]
506506

507507
wa2 <- function(url, dots, rs, tls = NULL)
508-
shQuote(sprintf("mirai::daemon(\"%s\"%s%s,rs=c(%s),dispatcher=FALSE)", url, dots, parse_tls(tls), paste0(rs, collapse = ",")))
508+
shQuote(sprintf("mirai::daemon(\"%s\",dispatcher=FALSE%s%s,rs=c(%s))", url, dots, parse_tls(tls), paste0(rs, collapse = ",")))
509509

510510
wa3 <- function(url, dots, rs, tls = NULL)
511-
shQuote(sprintf("mirai::daemon(\"%s\"%s%s,rs=c(%s),dispatcher=TRUE)", url, dots, parse_tls(tls), paste0(rs, collapse = ",")))
511+
shQuote(sprintf("mirai::daemon(\"%s\",dispatcher=TRUE%s%s,rs=c(%s))", url, dots, parse_tls(tls), paste0(rs, collapse = ",")))
512512

513513
wa4 <- function(urld, dots, rs, n)
514514
shQuote(sprintf(".libPaths(c(\"%s\",.libPaths()));mirai::dispatcher(\"%s\",n=%d,rs=c(%s)%s)", libp(), urld, n, paste0(rs, collapse= ","), dots))

0 commit comments

Comments
 (0)