From 7065307e382cd850afad74d229dbe90ef65cac2b Mon Sep 17 00:00:00 2001 From: wlandau-lilly Date: Tue, 5 Dec 2023 12:04:37 -0500 Subject: [PATCH] Fix links --- DESCRIPTION | 2 -- R/tar_seed_create.R | 4 ++-- R/tar_seed_get.R | 2 +- R/tar_seed_set.R | 2 +- man/tar_seed_create.Rd | 4 ++-- man/tar_seed_get.Rd | 4 ++-- man/tar_seed_set.Rd | 4 ++-- 7 files changed, 10 insertions(+), 12 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index f9f501ae4..4b54a5e9d 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -108,8 +108,6 @@ Suggests: torch (>= 0.1.0), usethis (>= 1.6.3), visNetwork (>= 2.1.2) -Additional_repositories: - https://mschubert.r-universe.dev Encoding: UTF-8 Language: en-US VignetteBuilder: knitr diff --git a/R/tar_seed_create.R b/R/tar_seed_create.R index 0a5b4ac21..a2446a387 100644 --- a/R/tar_seed_create.R +++ b/R/tar_seed_create.R @@ -25,7 +25,7 @@ #' see the Section 6: "Random-number generation" in the `parallel` #' package vignette: `vignette(topic = "parallel", package = "parallel")`.) #' However, this risk is extremely small in practice, as shown by -#' L'Ecuyer et al. (2017) +#' L'Ecuyer et al. (2017) \doi{10.1016/j.matcom.2016.05.005} #' under "A single RNG with a 'random' seed for each stream" (Section 4: #' under "How to produce parallel streams and substreams"). #' @@ -59,7 +59,7 @@ #' Pierre L'Ecuyer, David Munger, Boris Oreshkin, and Richard Simard #' (2017). Random numbers for parallel computers: Requirements and methods, #' with emphasis on GPUs. Mathematics and Computers in Simulation, -#' 135, 3-17. . +#' 135, 3-17. \doi{10.1016/j.matcom.2016.05.005}. tar_seed_create <- function(name, global_seed = NULL) { if (is.null(global_seed)) { global_seed <- tar_options$get_seed() diff --git a/R/tar_seed_get.R b/R/tar_seed_get.R index 2f26d03dd..cc0d2603d 100644 --- a/R/tar_seed_get.R +++ b/R/tar_seed_get.R @@ -9,7 +9,7 @@ #' Pierre L'Ecuyer, David Munger, Boris Oreshkin, and Richard Simard #' (2017). Random numbers for parallel computers: Requirements and methods, #' with emphasis on GPUs. Mathematics and Computers in Simulation, -#' 135, 3-17. . +#' 135, 3-17. \doi{10.1016/j.matcom.2016.05.005}. #' @return Integer of length 1. If invoked inside a `targets` pipeline, #' the return value is the seed of the target currently running, #' which is a deterministic function of the target name. Otherwise, diff --git a/R/tar_seed_set.R b/R/tar_seed_set.R index efc7eb2ca..0f8c086ee 100644 --- a/R/tar_seed_set.R +++ b/R/tar_seed_set.R @@ -13,7 +13,7 @@ #' Pierre L'Ecuyer, David Munger, Boris Oreshkin, and Richard Simard #' (2017). Random numbers for parallel computers: Requirements and methods, #' with emphasis on GPUs. Mathematics and Computers in Simulation, -#' 135, 3-17. . +#' 135, 3-17. \doi{10.1016/j.matcom.2016.05.005}. #' @return `NULL` (invisibly). #' @param seed Integer of length 1, value of the seed to set #' with `set.seed()`. diff --git a/man/tar_seed_create.Rd b/man/tar_seed_create.Rd index 7bc8d51a9..05c2ad549 100644 --- a/man/tar_seed_create.Rd +++ b/man/tar_seed_create.Rd @@ -49,7 +49,7 @@ correlated results. (For a discussion of the motivating problem, see the Section 6: "Random-number generation" in the \code{parallel} package vignette: \code{vignette(topic = "parallel", package = "parallel")}.) However, this risk is extremely small in practice, as shown by -L'Ecuyer et al. (2017) \url{https://doi.org/10.1016/j.matcom.2016.05.005} +L'Ecuyer et al. (2017) \doi{10.1016/j.matcom.2016.05.005} under "A single RNG with a 'random' seed for each stream" (Section 4: under "How to produce parallel streams and substreams"). @@ -79,7 +79,7 @@ for simulation".) There are two notable quirks, but they are innocuous: Pierre L'Ecuyer, David Munger, Boris Oreshkin, and Richard Simard (2017). Random numbers for parallel computers: Requirements and methods, with emphasis on GPUs. Mathematics and Computers in Simulation, -135, 3-17. \url{https://doi.org/10.1016/j.matcom.2016.05.005}. +135, 3-17. \doi{10.1016/j.matcom.2016.05.005}. } \seealso{ Other pseudo-random number generation: diff --git a/man/tar_seed_get.Rd b/man/tar_seed_get.Rd index 050411281..02bdc95ef 100644 --- a/man/tar_seed_get.Rd +++ b/man/tar_seed_get.Rd @@ -50,7 +50,7 @@ correlated results. (For a discussion of the motivating problem, see the Section 6: "Random-number generation" in the \code{parallel} package vignette: \code{vignette(topic = "parallel", package = "parallel")}.) However, this risk is extremely small in practice, as shown by -L'Ecuyer et al. (2017) \url{https://doi.org/10.1016/j.matcom.2016.05.005} +L'Ecuyer et al. (2017) \doi{10.1016/j.matcom.2016.05.005} under "A single RNG with a 'random' seed for each stream" (Section 4: under "How to produce parallel streams and substreams"). @@ -91,7 +91,7 @@ tar_read(returns_seed) Pierre L'Ecuyer, David Munger, Boris Oreshkin, and Richard Simard (2017). Random numbers for parallel computers: Requirements and methods, with emphasis on GPUs. Mathematics and Computers in Simulation, -135, 3-17. \url{https://doi.org/10.1016/j.matcom.2016.05.005}. +135, 3-17. \doi{10.1016/j.matcom.2016.05.005}. } \seealso{ Other pseudo-random number generation: diff --git a/man/tar_seed_set.Rd b/man/tar_seed_set.Rd index 96001094a..906442284 100644 --- a/man/tar_seed_set.Rd +++ b/man/tar_seed_set.Rd @@ -51,7 +51,7 @@ correlated results. (For a discussion of the motivating problem, see the Section 6: "Random-number generation" in the \code{parallel} package vignette: \code{vignette(topic = "parallel", package = "parallel")}.) However, this risk is extremely small in practice, as shown by -L'Ecuyer et al. (2017) \url{https://doi.org/10.1016/j.matcom.2016.05.005} +L'Ecuyer et al. (2017) \doi{10.1016/j.matcom.2016.05.005} under "A single RNG with a 'random' seed for each stream" (Section 4: under "How to produce parallel streams and substreams"). @@ -90,7 +90,7 @@ sample(10) Pierre L'Ecuyer, David Munger, Boris Oreshkin, and Richard Simard (2017). Random numbers for parallel computers: Requirements and methods, with emphasis on GPUs. Mathematics and Computers in Simulation, -135, 3-17. \url{https://doi.org/10.1016/j.matcom.2016.05.005}. +135, 3-17. \doi{10.1016/j.matcom.2016.05.005}. } \seealso{ Other pseudo-random number generation: