powered by
checkRNG checks if two objects have the same RNG settings and should be used in unit tests, e.g., with the RUnit package.
checkRNG
checkRNG(x, y = getRNG(), ...)
objects from which RNG settings are extracted.
extra arguments passed to checkTrue.
checkTrue
# NOT RUN { #--- checkRNG --- # check for differences in RNG set.seed(123) checkRNG(123) try( checkRNG(123, 123) ) try( checkRNG(123, 1:3) ) # }
Run the code above in your browser using DataLab