Skip to content

Commit 7c52749

Browse files
Example tweaks
1 parent cfa4982 commit 7c52749

9 files changed

+10
-6
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.2-9939
2+
Version: 0.12.2-9940
33
Depends:
44
R (>= 3.2.0),
55
parallelly,

R/batchtools_bash.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ BatchtoolsBashFutureBackend <- function(...,
5656
#'
5757
#' @examplesIf interactive()
5858
#' library(future)
59+
#'
5960
#' # Limit runtime to 30 seconds per future
6061
#' plan(batchtools_bash, resources = list(runtime = 30))
6162
#'

R/batchtools_custom.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#'
77
#' @return An object of class `BatchtoolsFuture`.
88
#'
9-
#' @examplesIf interactive()
9+
#' @examples
1010
#' library(future)
1111
#'
1212
#' ## Create custom cluster functions (here same as "local")

R/batchtools_interactive.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ BatchtoolsInteractiveFutureBackend <- function(fs.latency = 0.0, ...) {
3737
#' sequentially and that also can be debugged interactively.
3838
#'
3939
#' @examples
40+
#' library(future)
4041
#' plan(future.batchtools::batchtools_interactive)
4142
#'
4243
#' message("Main process ID: ", Sys.getpid())

R/batchtools_multicore.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ BatchtoolsMulticoreFutureBackend <- function(workers = availableCores(constraint
8787
#' An alternative to the batchtools multicore backend is to use
8888
#' `plan(future::multicore)`.
8989
#'
90-
#' @examples
90+
#' @examplesIf interactive()
9191
#' library(future)
9292
#' plan(future.batchtools::batchtools_multicore, workers = 2)
9393
#'

man/BatchtoolsFutureBackend.Rd

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

man/batchtools_bash.Rd

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

man/batchtools_interactive.Rd

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

man/batchtools_multicore.Rd

Lines changed: 2 additions & 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)