Skip to content

Commit d494ff8

Browse files
Now internal S3 methods for internal S3 generic are properly registered as such in NAMESPACE
1 parent 03c941c commit d494ff8

File tree

5 files changed

+22
-2
lines changed

5 files changed

+22
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: future.batchtools
2-
Version: 0.12.1-9005
2+
Version: 0.12.1-9006
33
Depends:
44
R (>= 3.2.0),
55
parallelly,

NAMESPACE

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Generated by roxygen2: do not edit by hand
22

3+
S3method(add_finalizer,BatchtoolsFuture)
34
S3method(delete,BatchtoolsFuture)
45
S3method(loggedError,BatchtoolsFuture)
56
S3method(loggedOutput,BatchtoolsFuture)
@@ -10,9 +11,18 @@ S3method(nbrOfWorkers,batchtools)
1011
S3method(nbrOfWorkers,batchtools_multicore)
1112
S3method(nbrOfWorkers,batchtools_uniprocess)
1213
S3method(print,BatchtoolsFuture)
14+
S3method(registerFuture,BatchtoolsFuture)
15+
S3method(registerFuture,BatchtoolsUniprocessFuture)
16+
S3method(registerFuture,default)
1317
S3method(resolved,BatchtoolsFuture)
1418
S3method(result,BatchtoolsFuture)
1519
S3method(run,BatchtoolsFuture)
20+
S3method(unregisterFuture,BatchtoolsFuture)
21+
S3method(unregisterFuture,BatchtoolsUniprocessFuture)
22+
S3method(unregisterFuture,default)
23+
S3method(waitForWorker,BatchtoolsFuture)
24+
S3method(waitForWorker,BatchtoolsUniprocessFuture)
25+
S3method(waitForWorker,default)
1626
export("%resources%")
1727
export(BatchtoolsBashFuture)
1828
export(BatchtoolsCustomFuture)

R/BatchtoolsFuture-class.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,7 @@ delete.BatchtoolsFuture <- function(future,
864864

865865
add_finalizer <- function(...) UseMethod("add_finalizer")
866866

867+
#' @export
867868
add_finalizer.BatchtoolsFuture <- function(future, debug = FALSE, ...) {
868869
## Register finalizer (will clean up registries etc.)
869870

R/waitForWorker.R

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,21 @@ waitForWorker <- function(future, ...) {
22
UseMethod("waitForWorker")
33
}
44

5+
#' @export
56
waitForWorker.default <- function(future, ...) NULL
67

8+
#' @export
79
waitForWorker.BatchtoolsUniprocessFuture <- function(future, ...) NULL
810

911

1012
registerFuture <- function(future, ...) {
1113
UseMethod("registerFuture")
1214
}
1315

16+
#' @export
1417
registerFuture.default <- function(future, ...) NULL
1518

19+
#' @export
1620
registerFuture.BatchtoolsUniprocessFuture <- function(future, ...) NULL
1721

1822

@@ -21,24 +25,29 @@ unregisterFuture <- function(future, ...) {
2125
UseMethod("unregisterFuture")
2226
}
2327

28+
#' @export
2429
unregisterFuture.default <- function(future, ...) NULL
2530

31+
#' @export
2632
unregisterFuture.BatchtoolsUniprocessFuture <- function(future, ...) NULL
2733

2834

35+
#' @export
2936
registerFuture.BatchtoolsFuture <- function(future, ...) {
3037
freg <- sprintf("workers-%s", class(future)[1])
3138
FutureRegistry(freg, action = "add", future = future, earlySignal = FALSE, ...)
3239
}
3340

3441

42+
#' @export
3543
unregisterFuture.BatchtoolsFuture <- function(future, ...) {
3644
freg <- sprintf("workers-%s", class(future)[1])
3745
FutureRegistry(freg, action = "remove", future = future, ...)
3846
}
3947

4048

4149
#' @importFrom future FutureError
50+
#' @export
4251
waitForWorker.BatchtoolsFuture <- function(future,
4352
workers,
4453
await = NULL,

man/future.batchtools.options.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)