Skip to content

setting the seed in standalone code using Rlib

2 messages · David Faden, Brian Ripley

#
Hi,

Is the below -- setSeed -- an okay way to set the seed in standalone
applications making use of Rlib? It seems to work as expected. Is
there a better way to do it? (I'm also looking at do_setseed but am
unsure what to supply as op. findFun("set.seed", R_GlobalEnv)?) Thanks
much.
#
What is 'Rlib'?

Did you mean embedded R (libR), rather than standalone Rmath? 
Applications making use of libR are not 'standalone': they use almost all 
of the installed R files.
On Wed, 2 Jan 2008, David Faden wrote:

            
It is the only documented way to set the seed in embedded R.  Should you 
have meant standalone Rmath, other ways are documented.
do_setseed is not an exported entry point, so not available to most users 
of libR.