Use set_seed()
to set the seed in R
and Julia
at the start of your workflow.
Arguments
- .seed
An
integer
that defined the seed (seeset.seed()
).
Examples
if (patter_run(.geospatial = FALSE)) {
julia_connect()
set_seed(2024L)
}
#> `patter::julia_connect()` called @ 2025-04-22 09:32:16...
#> ... Running `Julia` setup via `JuliaCall::julia_setup()`...
#> ... Validating Julia installation...
#> ... Setting up Julia project...
#> ... Handling dependencies...
#> ... `Julia` set up with 11 thread(s).
#> `patter::julia_connect()` call ended @ 2025-04-22 09:32:16 (duration: ~0 sec(s)).