Skip to content

Commit 9ff5f87

Browse files
Clarify option 'future.cache.path' [#64]
1 parent 4625dae commit 9ff5f87

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
lines changed

NEWS

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
Package: future.batchtools
22
==========================
33

4-
Version: 0.9.0-9000 [2020-09-30]
4+
Version: 0.9.0-9000 [2020-10-02]
55

66
DOCUMENTATION:
77

8-
* Documenting option 'future.debug' in help("future.batchtools.options").
8+
* Document option 'future.delete' and clarify option 'future.cache.path'
9+
in help("future.batchtools.options").
910

1011

1112
Version: 0.9.0 [2020-04-14]

R/options.R

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@
3232
#' (character string)
3333
#' An absolute or relative path specifying the root folder in which
3434
#' \pkg{batchtools} registry folders are stored.
35-
#' (Default: `.future`)}
35+
#' This folder needs to be accessible from all hosts ("workers").
36+
#' Specifically, it must _not_ be a folder that is only local to the
37+
#' machine such as `file.path(tempdir(), ".future"` if an job scheduler
38+
#' on a HPC environment is used.
39+
#' (Default: `.future` in the current working directory)}
3640
#'
3741
#' \item{\option{future.delete}:}{(logical)
3842
#' Controls whether or not the future's \pkg{batchtools} registry folder
@@ -45,6 +49,13 @@
4549
#' (Default: NULL (not set))}
4650
#' }
4751
#'
52+
#' @examples
53+
#' # Set an R option:
54+
#' options(future.cache.path = "/cluster-wide/folder/.future")
55+
#'
56+
#' # Set an environment variable:
57+
#' Sys.setenv(R_FUTURE_RNG_ONMISUSE = "/cluster-wide/folder/.future")
58+
#'
4859
#' @aliases
4960
#' future.cache.path
5061
#' future.delete

man/future.batchtools.options.Rd

Lines changed: 13 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)