Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getRNGState

Apply the value of .Random.seed to R's internal RNG state


Description

This function is needed in unusual cases where a C++ function calls an R function which sets the value of .Random.seed. This function should be called at the end of the R function to ensure that the new value .Random.seed is preserved. Otherwise, Rcpp may overwrite it with a previous value.

Usage

getRNGState()

httpuv

HTTP and WebSocket Server Library

v1.6.1
GPL (>= 2) | file LICENSE
Authors
Joe Cheng [aut], Winston Chang [aut, cre], RStudio, PBC [cph], Hector Corrada Bravo [ctb], Jeroen Ooms [ctb], Andrzej Krzemienski [cph] (optional.hpp)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.