search for: initdefaultclusteropt

Displaying 7 results from an estimated 7 matches for "initdefaultclusteropt".

2011 Jul 19
1
requiring NAMESPACE re-installation marked as old.packages?
...R ** inst ** Creating default NAMESPACE file ** preparing package for lazy loading ** help *** installing help indices ** building package indices ... ** testing if installed package can be loaded Warning: running .First.lib() for package 'snow' as .onLoad/.onAssign were not found Error in initDefaultClusterOptions() : cannot change value of locked binding for 'defaultClusterOptions' Error: loading failed Execution halted ERROR: loading failed * removing '/home/mtmorgan/R/x86_64-unknown-linux-gnu-library/2.14/snow' * restoring previous '/home/mtmorgan/R/x86_64-unknown-linux-gnu-lib...
2018 Mar 04
2
Random Seed Location
...in different R packages. R WISH: There could be a preserveRandomSeed({ tip <- sample(tips, 1) }) function in R for these type of random needs where true random properties are non-critical. This type of "draw-a-random-number-and-reset-the-seed" is for instance used in parallel:::initDefaultClusterOptions() which is called when the 'parallel' package is loaded: seed <- .GlobalEnv$.Random.seed ran1 <- sample.int(.Machine$integer.max - 1L, 1L) / .Machine$integer.max port <- 11000 + 1000 * ((ran1 + unclass(Sys.time()) / 300) %% 1) if(is.null(seed)) ## there was none, initially rm(...
2018 Mar 04
0
Random Seed Location
...d be a > > preserveRandomSeed({ > tip <- sample(tips, 1) > }) > > function in R for these type of random needs where true random > properties are non-critical. This type of > "draw-a-random-number-and-reset-the-seed" is for instance used in > parallel:::initDefaultClusterOptions() which is called when the > 'parallel' package is loaded: > > seed <- .GlobalEnv$.Random.seed > ran1 <- sample.int(.Machine$integer.max - 1L, 1L) / .Machine$integer.max > port <- 11000 + 1000 * ((ran1 + unclass(Sys.time()) / 300) %% 1) > if(is.null(seed)) ##...
2014 Mar 06
2
'parallel' package changes '.Random.seed'
Hi, I've implemented parallelization in one of my packages using the 'parallel' package -- many thanks for providing it! In my package I'm importing 'parallel' and so added it to the DESCRIPTION file's 'Import:' tag and also added a 'importFrom("parallel", ...)' statement in the NAMESPACE file. Parallelization works nicely, but my package
2018 Mar 05
1
Random Seed Location
...andomSeed({ >> tip <- sample(tips, 1) >> }) >> >> function in R for these type of random needs where true random >> properties are non-critical. This type of >> "draw-a-random-number-and-reset-the-seed" is for instance used in >> parallel:::initDefaultClusterOptions() which is called when the >> 'parallel' package is loaded: >> >> seed <- .GlobalEnv$.Random.seed >> ran1 <- sample.int(.Machine$integer.max - 1L, 1L) / .Machine$integer.max >> port <- 11000 + 1000 * ((ran1 + unclass(Sys.time()) / 300) %% 1) >&g...
2018 Mar 04
0
Random Seed Location
Thank you, everybody, who replied! I appreciate your valuable advise! I will move the location of the set.seed() command to after all packages have been installed and loaded. Best regards, Gary Sent from my iPad > On Mar 4, 2018, at 12:18 PM, Paul Gilbert <pgilbert902 at gmail.com> wrote: > > On Mon, Feb 26, 2018 at 3:25 PM, Gary Black <gwblack001 at sbcglobal.net> >
2018 Mar 04
3
Random Seed Location
On Mon, Feb 26, 2018 at 3:25 PM, Gary Black <gwblack001 at sbcglobal.net> wrote: (Sorry to be a bit slow responding.) You have not supplied a complete example, which would be good in this case because what you are suggesting could be a serious bug in R or a package. Serious journals require reproducibility these days. For example, JSS is very clear on this point. To your question >