Skip to content

foreach() %dorng% output without attributes #20

@GitHunter0

Description

@GitHunter0

Hi @renozao , is there a way to get the output of foreach() using %dorng% without adding any RNG attribute to it?

Here is an example:

library(doRNG)
result <- 
foreach::foreach(i=1:2, .combine = c) %dorng% { 
  set.seed(1) 
  return(runif(1)) 
}
str(result)

result has rng and doRNG_version attributes, can we get a clean output without them?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions