Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed a few typos #306

Merged
merged 9 commits into from
Oct 14, 2022
4 changes: 2 additions & 2 deletions R/setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ setup_default_logging <- function(logs = tempdir(check = TRUE),
#' More advanced users are recommended to setup their own `future` backend based on their
#' available resources.
#' @param strategies A vector length 1 to 2 of strategies to pass to `future::plan`. Nesting
#' of parallisation is from the top level down. The default is to set up nesting parallisation
#' of parallelisation is from the top level down. The default is to set up nesting parallelisation
#' with both using `future::multisession` (`future::multicore` will likely be a faster option on
#' supported platforms). For single level parallisation use a single strategy
#' supported platforms). For single level parallelisation use a single strategy
#' or `future::plan` directly. See `?future::plan` for options.
#' @param min_cores_per_worker Numeric, the minimum number of cores per worker.
#' Defaults to 4 which assumes 4 MCMC chains are in use per region.
Expand Down
2 changes: 1 addition & 1 deletion data-raw/incubation-period.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ incubation_periods <- data.table(
url = "doi.org/10.7326/M20-0504"
)

usethis::use_data(incubation_periods, overwrite = TRUE)
usethis::use_data(incubation_periods, overwrite = TRUE)
2 changes: 1 addition & 1 deletion tests/testthat/test-create_stan_args.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ test_that("create_stan_args returns the expected defaults when the approximate m
))
})

test_that("create_stan_args can modify arugments", {
test_that("create_stan_args can modify arguments", {
expect_equal(create_stan_args(stan = stan_opts(warmup = 1000))$warmup, 1000)
})
2 changes: 1 addition & 1 deletion tests/testthat/test-setup_future.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ test_that("setup_future runs without error", {
expect_type(no_cores, "double")
})

test_that("setup_future runs when only using a single level of parallisation", {
test_that("setup_future runs when only using a single level of parallelisation", {
expect_null(suppressWarnings(setup_future(reported_cases, strategies = "multisession")))
})

Expand Down