Skip to contents

Use set_seed() to set the seed in R and Julia at the start of your workflow.

Usage

set_seed(.seed = 123L)

Arguments

.seed

An integer that defined the seed (see set.seed()).

Value

The function returns invisible(NULL).

See also

Author

Edward Lavender

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)).