File: getRNGState.Rd

package info (click to toggle)
r-cran-httpuv 1.6.15%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,292 kB
  • sloc: ansic: 6,499; cpp: 5,501; makefile: 103; sh: 56
file content (16 lines) | stat: -rw-r--r-- 562 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{getRNGState}
\alias{getRNGState}
\title{Apply the value of .Random.seed to R's internal RNG state}
\usage{
getRNGState()
}
\description{
This function is needed in unusual cases where a C++ function calls
an R function which sets the value of \code{.Random.seed}. This function
should be called at the end of the R function to ensure that the new value
\code{.Random.seed} is preserved. Otherwise, Rcpp may overwrite it with a
previous value.
}
\keyword{internal}