Skip to content

Commit 4459ecf

Browse files
Document batchtools_ssh()
1 parent d17b346 commit 4459ecf

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

R/batchtools_ssh.R

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,23 @@ BatchtoolsSSHFutureBackend <- function(workers = availableWorkers(), ...) {
7272
}
7373

7474

75+
#' A batchtools backend that resolves futures in parallel via background R sessions over SSH
76+
#'
77+
#' @inheritParams BatchtoolsFutureBackend
78+
#'
79+
#' @details
80+
#' The `batchtools_ssh` backend uses the batchtools backend set
81+
#' up by [batchtools::makeClusterFunctionsSSH()], which requires
82+
#' system commands `ssh` and `ps` as available on Linux and macOS.
83+
#'
84+
#' An alternative to `batchtools_ssh` is to use
85+
#' [cluster][future::cluster] futures of the \pkg{future}
86+
#' package with a single local background session, i.e.
87+
#' `plan(cluster, workers = c("localhost"))`.
88+
#'
7589
#' @inheritParams BatchtoolsSSHFutureBackend
7690
#'
91+
#' @keywords internal
7792
#' @export
7893
batchtools_ssh <- function(..., workers = availableWorkers()) {
7994
stop("INTERNAL ERROR: The future.batchtools::batchtools_ssh() must never be called directly")

0 commit comments

Comments
 (0)