safe version of retrieving the .Random.seed
Get or Set Current Seed - Safe Version
withseed(seed, expr, envir = parent.frame(), cache = getOption("harvestr.use.cache", defaults$cache()), cache.dir = getOption("harvestr.cache.dir", defaults$cache.dir()), time = getOption("harvestr.time", defaults$time()))
get.seed()
replace.seed(seed, delete = TRUE)
GetOrSetSeed()
environment
to evaluate the code in.seed
is null.does not replace the global .Random.seed
Replaces the .Random.seed with seed unless seed is null, then it will delete the .Random.seed if delete=T
Always returns a valid seed. Useful for grabbing a seed used to generate a random object.
set.seed