Skip to content

Commit 744b10b

Browse files
committed
wlandau/crew#217 compatibility
1 parent 999db2a commit 744b10b

24 files changed

Lines changed: 235 additions & 140 deletions

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Authors@R: c(
4949
Depends:
5050
R (>= 4.0.0)
5151
Imports:
52-
crew (>= 1.1.0),
52+
crew (>= 1.1.2.9004),
5353
ps,
5454
lifecycle,
5555
R6,

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# crew.cluster 0.3.7.9001 (development)
22

3-
* Use `expect_no_error()` instead of `expect_silent()` to ensure compatibility with the deprecations to fix https://github.com/wlandau/crew/issues/217.
3+
* Use `expect_no_error()` instead of `expect_silent()` to ensure compatibility with the deprecation cycle to fix https://github.com/wlandau/crew/issues/217.
44

55
# crew.cluster 0.3.7
66

R/crew_controller_lsf.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
#' with caution and report bugs to
1010
#' <https://github.com/wlandau/crew.cluster>.
1111
#' @inheritSection crew.cluster-package Attribution
12+
#' @inheritParams crew::crew_controller
1213
#' @inheritParams crew_launcher_lsf
1314
#' @inheritParams crew::crew_client
14-
#' @inheritParams crew::crew_controller
1515
#' @param seconds_exit Deprecated on 2023-09-21 in version 0.1.2.9000.
1616
#' No longer necessary.
1717
#' @examples
@@ -100,10 +100,6 @@ crew_controller_lsf <- function(
100100
seconds_wall = seconds_wall,
101101
tasks_max = tasks_max,
102102
tasks_timers = tasks_timers,
103-
reset_globals = reset_globals,
104-
reset_packages = reset_packages,
105-
reset_options = reset_options,
106-
garbage_collection = garbage_collection,
107103
tls = tls,
108104
r_arguments = r_arguments,
109105
options_metrics = options_metrics,
@@ -124,6 +120,10 @@ crew_controller_lsf <- function(
124120
controller <- crew::crew_controller(
125121
client = client,
126122
launcher = launcher,
123+
reset_globals = reset_globals,
124+
reset_packages = reset_packages,
125+
reset_options = reset_options,
126+
garbage_collection = garbage_collection,
127127
crashes_max = crashes_max,
128128
backup = backup
129129
)

R/crew_controller_pbs.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
#' @description Create an `R6` object to submit tasks and
66
#' launch workers on a PBS or TORQUE cluster.
77
#' @inheritSection crew.cluster-package Attribution
8+
#' @inheritParams crew::crew_controller
89
#' @inheritParams crew_launcher_pbs
910
#' @inheritParams crew::crew_client
10-
#' @inheritParams crew::crew_controller
1111
#' @param seconds_exit Deprecated on 2023-09-21 in version 0.1.2.9000.
1212
#' No longer necessary.
1313
#' @examples
@@ -97,10 +97,6 @@ crew_controller_pbs <- function(
9797
seconds_wall = seconds_wall,
9898
tasks_max = tasks_max,
9999
tasks_timers = tasks_timers,
100-
reset_globals = reset_globals,
101-
reset_packages = reset_packages,
102-
reset_options = reset_options,
103-
garbage_collection = garbage_collection,
104100
tls = tls,
105101
r_arguments = r_arguments,
106102
options_metrics = options_metrics,
@@ -122,6 +118,10 @@ crew_controller_pbs <- function(
122118
controller <- crew::crew_controller(
123119
client = client,
124120
launcher = launcher,
121+
reset_globals = reset_globals,
122+
reset_packages = reset_packages,
123+
reset_options = reset_options,
124+
garbage_collection = garbage_collection,
125125
crashes_max = crashes_max,
126126
backup = backup
127127
)

R/crew_controller_sge.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
#' @description Create an `R6` object to submit tasks and
66
#' launch workers on Sun Grid Engine (SGE) workers.
77
#' @inheritSection crew.cluster-package Attribution
8+
#' @inheritParams crew::crew_controller
89
#' @inheritParams crew_launcher_sge
910
#' @inheritParams crew::crew_client
10-
#' @inheritParams crew::crew_controller
1111
#' @param seconds_exit Deprecated on 2023-09-21 in version 0.1.2.9000.
1212
#' No longer necessary.
1313
#' @examples
@@ -99,10 +99,6 @@ crew_controller_sge <- function(
9999
seconds_wall = seconds_wall,
100100
tasks_max = tasks_max,
101101
tasks_timers = tasks_timers,
102-
reset_globals = reset_globals,
103-
reset_packages = reset_packages,
104-
reset_options = reset_options,
105-
garbage_collection = garbage_collection,
106102
tls = tls,
107103
r_arguments = r_arguments,
108104
options_metrics = options_metrics,
@@ -126,6 +122,10 @@ crew_controller_sge <- function(
126122
controller <- crew::crew_controller(
127123
client = client,
128124
launcher = launcher,
125+
reset_globals = reset_globals,
126+
reset_packages = reset_packages,
127+
reset_options = reset_options,
128+
garbage_collection = garbage_collection,
129129
crashes_max = crashes_max,
130130
backup = backup
131131
)

R/crew_controller_slurm.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
#' with caution and report bugs to
1010
#' <https://github.com/wlandau/crew.cluster>.
1111
#' @inheritSection crew.cluster-package Attribution
12+
#' @inheritParams crew::crew_controller
1213
#' @inheritParams crew_launcher_slurm
1314
#' @inheritParams crew::crew_client
14-
#' @inheritParams crew::crew_controller
1515
#' @param seconds_exit Deprecated on 2023-09-21 in version 0.1.2.9000.
1616
#' No longer necessary.
1717
#' @examples
@@ -101,10 +101,6 @@ crew_controller_slurm <- function(
101101
seconds_wall = seconds_wall,
102102
tasks_max = tasks_max,
103103
tasks_timers = tasks_timers,
104-
reset_globals = reset_globals,
105-
reset_packages = reset_packages,
106-
reset_options = reset_options,
107-
garbage_collection = garbage_collection,
108104
tls = tls,
109105
r_arguments = r_arguments,
110106
options_metrics = options_metrics,
@@ -126,6 +122,10 @@ crew_controller_slurm <- function(
126122
controller <- crew::crew_controller(
127123
client = client,
128124
launcher = launcher,
125+
reset_globals = reset_globals,
126+
reset_packages = reset_packages,
127+
reset_options = reset_options,
128+
garbage_collection = garbage_collection,
129129
crashes_max = crashes_max,
130130
backup = backup
131131
)

R/crew_launcher_cluster.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ crew_launcher_cluster <- function(
2828
seconds_wall = Inf,
2929
tasks_max = Inf,
3030
tasks_timers = 0L,
31-
reset_globals = TRUE,
32-
reset_packages = FALSE,
33-
reset_options = FALSE,
34-
garbage_collection = FALSE,
31+
reset_globals = NULL,
32+
reset_packages = NULL,
33+
reset_options = NULL,
34+
garbage_collection = NULL,
3535
crashes_error = NULL,
3636
tls = crew::crew_tls(mode = "automatic"),
3737
r_arguments = c("--no-save", "--no-restore"),

R/crew_launcher_lsf.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ crew_launcher_lsf <- function(
3838
seconds_wall = Inf,
3939
tasks_max = Inf,
4040
tasks_timers = 0L,
41-
reset_globals = TRUE,
42-
reset_packages = FALSE,
43-
reset_options = FALSE,
44-
garbage_collection = FALSE,
41+
reset_globals = NULL,
42+
reset_packages = NULL,
43+
reset_options = NULL,
44+
garbage_collection = NULL,
4545
crashes_error = NULL,
4646
tls = crew::crew_tls(mode = "automatic"),
4747
r_arguments = c("--no-save", "--no-restore"),

R/crew_launcher_pbs.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ crew_launcher_pbs <- function(
3939
seconds_wall = Inf,
4040
tasks_max = Inf,
4141
tasks_timers = 0L,
42-
reset_globals = TRUE,
43-
reset_packages = FALSE,
44-
reset_options = FALSE,
45-
garbage_collection = FALSE,
42+
reset_globals = NULL,
43+
reset_packages = NULL,
44+
reset_options = NULL,
45+
garbage_collection = NULL,
4646
crashes_error = NULL,
4747
tls = crew::crew_tls(mode = "automatic"),
4848
r_arguments = c("--no-save", "--no-restore"),

R/crew_launcher_sge.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ crew_launcher_sge <- function(
3737
seconds_wall = Inf,
3838
tasks_max = Inf,
3939
tasks_timers = 0L,
40-
reset_globals = TRUE,
41-
reset_packages = FALSE,
42-
reset_options = FALSE,
43-
garbage_collection = FALSE,
40+
reset_globals = NULL,
41+
reset_packages = NULL,
42+
reset_options = NULL,
43+
garbage_collection = NULL,
4444
crashes_error = NULL,
4545
tls = crew::crew_tls(mode = "automatic"),
4646
r_arguments = c("--no-save", "--no-restore"),

0 commit comments

Comments
 (0)