Skip to content

Commit 2acd954

Browse files
committed
Update R files and ignore rules for documentation and code improvements
- Add `_pkgdown.yml` and `.github` to `.Rbuildignore` - Document unused `...` argument in randomizer constructor - Fix factor level access in `f_random_stratum_builder` - Remove unused `@seealso` from `f_seed` documentation
1 parent 26e024d commit 2acd954

6 files changed

Lines changed: 6 additions & 6 deletions

.Rbuildignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ NEWS\.tex
2828
.*_snaps.*
2929
^Meta$
3030
^CNAME$
31+
^_pkgdown\.yml$
32+
^\.github$

R/class_random_block_size_randomizer.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#'
3131
#' @param blockSizes List of block size configurations, each mapping treatment arm IDs to sizes.
3232
#' @param seed Integer random seed used for reproducibility.
33+
#' @param ... Additional arguments (currently unused).
3334
#'
3435
#' @return A `RandomBlockSizeRandomizer` reference class object.
3536
#'

R/f_random_stratum_builder.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ createStratumId <- function(factorLevels) {
5555
)
5656
}
5757

58-
factorLevel <- factorLevels.get(factorName)
58+
factorLevel <- factorLevels[[factorName]]
5959
if (is.null(factorLevel) || nchar(trimws(factorLevel)) == 0) {
6060
stop("The specified factor level (#", counter, ") is invalid")
6161
}

R/f_seed.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@
7878
#' is better than the pseudo-random number algorithms typically used
7979
#' in computer programs. For more information see \url{https://www.random.org}.
8080
#'
81-
#' @seealso \link{getSimulatedTwoArmMeans}
82-
#'
8381
#' @return an integer value or vector containing one or more seeds.
8482
#'
8583
#' @export

man/createSeed.Rd

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

man/getRandomBlockSizeRandomizer.Rd

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

0 commit comments

Comments
 (0)