Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau-lilly committed Oct 12, 2023
1 parent a16e02c commit 5a53526
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
7 changes: 7 additions & 0 deletions R/tar_seed_create.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@
#' integer using `digest::digest2int()`. This is necessary
#' because integers in R can only be 32 bits. `set.seed()`
#' cannot accept anything greater.
#' @return Integer of length 1, the target seed.
#' @param name Character of length 1, target name.
#' @param global_seed Integer of length 1, the overarching global
#' pipeline seed which governs the seeds of all the targets.
#' Set to `NULL` to default to `tar_option_get("seed")`.
#' Set to `NA` to disable seed setting in `targets` and make
#' [tar_seed_create()] return `NA_integer_`.
#' @references
#' Pierre L'Ecuyer, David Munger, Boris Oreshkin, and Richard Simard
#' (2017). Random numbers for parallel computers: Requirements and methods,
Expand Down
2 changes: 1 addition & 1 deletion R/tar_seed_set.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#' @param seed Integer of length 1, value of the seed to set
#' with `set.seed()`.
#' @examples
#' seed <- tar_seed_create()
#' seed <- tar_seed_create("target_name")
#' seed
#' sample(10)
#' tar_seed_set(seed)
Expand Down
12 changes: 12 additions & 0 deletions man/tar_seed_create.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/tar_seed_set.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5a53526

Please sign in to comment.