Skip to content

Commit 9af16c8

Browse files
CLEANUP: Had some cut'n'paste uses of another package name in internal code and tests; changing only for the optics
1 parent fa5fa84 commit 9af16c8

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: parallelly
2-
Version: 1.46.1-9003
2+
Version: 1.46.1-9004
33
Title: Enhancing the 'parallel' Package
44
Imports:
55
parallel,

R/010.cli.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
parse_cmd_args <- function(patterns = list(), cmdargs = getOption("future.p2p.tests.cmdargs", commandArgs(trailingOnly = TRUE))) {
1+
parse_cmd_args <- function(patterns = list(), cmdargs = getOption(sprintf("%s.tests.cmdargs", .packageName), commandArgs(trailingOnly = TRUE))) {
22
args <- list()
33
for (pattern in patterns) {
44
type <- attr(pattern, "type")

inst/testme/test-cli.R

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ stopifnot(inherits(args, "error"))
4040

4141
print(parallelly::availableCores, call = FALSE)
4242

43-
options(future.p2p.tests.cmdargs = character(0L))
43+
options(parallelly.tests.cmdargs = character(0L))
4444
print(parallelly::availableCores, call = TRUE)
4545

46-
options(future.p2p.tests.cmdargs = c("--max=4"))
46+
options(parallelly.tests.cmdargs = c("--max=4"))
4747
print(parallelly::availableCores, call = TRUE)
4848

4949

@@ -68,28 +68,28 @@ output(list(abc = 42))
6868
output(c(abc = 42))
6969

7070

71-
options(future.p2p.tests.cmdargs = character(0L))
71+
options(parallelly.tests.cmdargs = character(0L))
7272
void <- print(fcn)
7373

74-
options(future.p2p.tests.cmdargs = c("--abc=0", "--def=3.14"))
74+
options(parallelly.tests.cmdargs = c("--abc=0", "--def=3.14"))
7575
void <- print(fcn)
7676

77-
options(future.p2p.tests.cmdargs = c("--abc=-1", "--def=3.14"))
77+
options(parallelly.tests.cmdargs = c("--abc=-1", "--def=3.14"))
7878
void <- print(fcn)
7979

80-
options(future.p2p.tests.cmdargs = c("--abc=+1", "--def=3.14"))
80+
options(parallelly.tests.cmdargs = c("--abc=+1", "--def=3.14"))
8181
void <- print(fcn)
8282

8383
parallelly:::cli_fcn_output(fcn) <- utils::str
84-
options(future.p2p.tests.cmdargs = c("--abc=+1", "--def=3.14"))
84+
options(parallelly.tests.cmdargs = c("--abc=+1", "--def=3.14"))
8585
void <- print(fcn)
8686

8787
parallelly:::cli_fcn(fcn) <- list(structure(parallelly:::cli_arg_integer("abc"), type = "unknown"))
8888
void <- tryCatch(print(fcn), error = identity)
8989
print(void)
9090
stopifnot(inherits(void, "error"))
9191

92-
options(future.p2p.tests.cmdargs = NULL)
92+
options(parallelly.tests.cmdargs = NULL)
9393

9494

9595
res <- tryCatch(parallelly:::cli_prune(), error = identity)

0 commit comments

Comments
 (0)