seek_seeds_word: Iterate over a vector of seeds to find a magic number for...

View source: R/seek_seeds.R View source: R/_old_seek_seeds.R

seek_seeds_wordR Documentation

Iterate over a vector of seeds to find a magic number for your word of choice.

Description

Iterate over a vector of seeds to find a magic number for your word of choice.

Iterate over a vector of seeds to find a magic number for your word of choice.

Usage

seek_seeds_word(.seeds, .word, .eval = "seq", cl = NULL, .progress = FALSE)

seek_seeds_word(.seeds, .word, .eval = "seq", cl = NULL, .progress = FALSE)

Arguments

.seeds

vector of seeds to iterate over, e. g. 0:1e5

.word

word of choice that you want to find a magic number for

.eval

type of evaluation: "seq" uses parallel::lapply(), "par" uses clusterApply, "future" uses future.apply::future_lapply

cl

cluster object for clusterApply(). cl <- makeCluster(parallelly::availableCores(omit = 1))

.progress

Show progress bar (TRUE) or not (FALSE); ignored if .eval = "par"

Value

Currently no useful return value. In case of success, calculation stops, the magic number (seed) is displayed in the console.

Currently no useful return value. In case of success, calculation stops, the magic number (seed) is displayed in the console.

Examples

seek_seeds_word(0:1e3, "ab")
seek_seeds_word(50000:70000, "xmas", .eval = "par", cl)
seek_seeds_word(50000:70000, "xmas", .eval = "future", cl)
seek_seeds_word(0:1e3, "ab")
seek_seeds_word(50000:70000, "xmas", .eval = "par", cl)
seek_seeds_word(50000:70000, "xmas", .eval = "future", cl)

fjodor/MagicNumbers documentation built on July 27, 2023, 3:21 a.m.