Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Isaac Gravestock <[email protected]>
Signed-off-by: Craig Gower-Page <[email protected]>
  • Loading branch information
gowerc and gravesti authored Sep 30, 2024
1 parent 08d5792 commit 33c4e96
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions R/methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ method_bayes <- function(
seed = NULL
) {
if (!is.null(seed)) {
warning(paste0(
warning(
"The `seed` argument to `method_bayes()` has been deprecated",
" please use `set.seed()` instead"
))
)
}

x <- list(
Expand Down
2 changes: 1 addition & 1 deletion data-raw/create_print_test_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ set.seed(413)
dobj <- get_data(40)

suppressWarnings({
set.seet(859)
set.seed(859)
drawobj_b <- draws(
data = dobj$dat,
data_ice = dobj$dat_ice,
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-mcmc.R
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ test_that("fit_mcmc can recover known values with same_cov = FALSE", {
})


test_that("seed argument to method_bayes is depreciated", {
test_that("seed argument to method_bayes is deprecated", {
expect_warning(
{
method <- method_bayes(
Expand Down

0 comments on commit 33c4e96

Please sign in to comment.