Skip to content

Commit

Permalink
update comments in optimize.R
Browse files Browse the repository at this point in the history
  • Loading branch information
idavydov committed Mar 15, 2024
1 parent 5369083 commit 421f1b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/optimize.R
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,10 @@ optimize_design <- function(batch_container, samples = NULL,

# saving the current random seed for reproducibility
if (!exists(".Random.seed", .GlobalEnv)) {
# sets the default random number generator and initialized
# Sets the default random number generator and initializes
# .Random.seed in the global environment.
# this doesn't affect the way random seed would have been set in
# downstream functions such as `sample()`
# This doesn't affect the way random seed would have been set in
# downstream functions such as `sample()`.
do.call(RNGkind, as.list(RNGkind()))
}
trace$seed <- list(.Random.seed)
Expand Down

0 comments on commit 421f1b3

Please sign in to comment.