Skip to content
Prev 295359 / 398502 Next

how to remove the 'promise' attribute of an R object (.Random.seed)?

I did not use delayedAssign() directly; I was using lazyLoad() and
.Random.seed was saved in a database. The real story out there is the
caching of my knitr package -- lazyLoad() was used to speed up the
compilation of Sweave documents.

I know lazyLoad() is supposed to be used only by R itself, but it is
very helpful for the purpose of caching as well.

Or is it possible to change the code in src/main/RNG.c so that the
seed is force()d if it is a promise?

Anyway, I can use save() and load() in this case instead of lazyLoad()
if the above is not going to happen. Thanks a lot!

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA
On Tue, May 22, 2012 at 12:49 PM, <luke-tierney at uiowa.edu> wrote: