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

Refactor setSeed and getResultList #676

Merged
merged 23 commits into from
Sep 15, 2023
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
1c97983
Refactor setSeed and getResultList
0liver0815 Sep 14, 2023
5b75de7
Merge 1c979832010e257a7e1fb0d240dcacff3dfab703 into 8bb205e2a665c9caf…
0liver0815 Sep 14, 2023
f900764
[skip actions] Restyle files
github-actions[bot] Sep 14, 2023
3adb372
Empty-Commit
0liver0815 Sep 14, 2023
365ca69
Update R/Design-methods.R
0liver0815 Sep 14, 2023
452d89c
Update R/Design-methods.R
0liver0815 Sep 14, 2023
1cfdf31
Revise code of set_seed.
0liver0815 Sep 14, 2023
2670ba7
Update R/Design-methods.R
0liver0815 Sep 14, 2023
e2b3b52
Update R/Design-methods.R
0liver0815 Sep 14, 2023
c0877aa
Update doc.
0liver0815 Sep 14, 2023
01cab5a
Merge branch '671-clean_design_methods_seed_resultslist' of https://g…
0liver0815 Sep 14, 2023
3fdf7ea
Update R/Design-methods.R
0liver0815 Sep 14, 2023
bca48ee
Merge 3fdf7ea8d15a63fffa923cb555a6f3895180fa6c into 1762da78c4b3aeaa6…
0liver0815 Sep 14, 2023
6c38b0c
[skip actions] Restyle files
github-actions[bot] Sep 14, 2023
413833e
Convert seed silently to integer.
0liver0815 Sep 14, 2023
85a4f0c
Update doc.
0liver0815 Sep 14, 2023
ff5d6bc
Update R/Design-methods.R
0liver0815 Sep 14, 2023
c2f67a2
Update doc.
0liver0815 Sep 14, 2023
661d3f0
Correct linter finding.
0liver0815 Sep 14, 2023
159efc9
Merge branch 'main' into 671-clean_design_methods_seed_resultslist
danielinteractive Sep 14, 2023
7a13770
Correct error.
0liver0815 Sep 15, 2023
6c6fd66
Change RNGkind back to default (had caused test case errors).
0liver0815 Sep 15, 2023
a116a27
Remove rng_state assignment.
0liver0815 Sep 15, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Correct error.
  • Loading branch information
0liver0815 committed Sep 15, 2023
commit 7a1377074c377bd8a0b20db6bc24a289b16f5380
4 changes: 2 additions & 2 deletions R/Design-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ get_result_list <- function(
} else {
# Process all simulations.
cores <- min(
safeInteger(parallel),
safeInteger(n_cores),
parallelly::availableCores()
)

Expand Down Expand Up @@ -144,7 +144,7 @@ get_result_list <- function(
# Stop the cluster.
parallel::stopCluster(cl)

return(res)
res
}
}

Expand Down