Re: [R] Reproducibility Between Local and Remote Computer with R

2020-08-08 Thread stephen sefick
Caveat, I have only skimmed this email thread, so please forgive me if I have missed something. Are you able to use Renv, packrat, docker, or anaconda? Your compute environments are very different. Kindest regards, Stephen Sefick On Sat, Aug 8, 2020, 19:05 Abby Spurdle wrote: > Hi Kevin, > > I

Re: [R] Reproducibility Between Local and Remote Computer with R

2020-08-08 Thread Duncan Murdoch
On 08/08/2020 9:34 a.m., Marc Schwartz via R-help wrote: Hi, I was initially going to think that the change in the RNG might be the source, however, that change was made in 3.6.0 and would have applied to runif() and sample(): "sample.kind can be "Rounding" or "Rejection", or partial matches

Re: [R] Reproducibility Between Local and Remote Computer with R

2020-08-08 Thread Abby Spurdle
Hi Kevin, Intuitively, the first step would be to ensure that all versions of R, and all the R packages, are the same. However, you mention HPC. And the glmnet package imports the foreach package, which appears (after a quick glance) to support multi-core and parallel computing. If your code use

Re: [R] Reproducibility Between Local and Remote Computer with R

2020-08-08 Thread Jeff Newmiller
You did not load the corresponding packages in both environments. Also.. please post plain text format per the Posting Guide mentioned in the footer of every post. On August 8, 2020 7:15:16 AM PDT, Kevin Egan wrote: >Local: >R version 4.0.2 (2020-06-22) >Platform: x86_64-apple-darwin17.0 (64-bi

Re: [R] Reproducibility Between Local and Remote Computer with R

2020-08-08 Thread Marc Schwartz via R-help
Hi, I was initially going to think that the change in the RNG might be the source, however, that change was made in 3.6.0 and would have applied to runif() and sample(): "sample.kind can be "Rounding" or "Rejection", or partial matches to these. The former was the default in versions prior to

Re: [R] Reproducibility Between Local and Remote Computer with R

2020-08-08 Thread Jeff Newmiller
Compare the sessionInfo outputs for the different environments. On August 7, 2020 1:24:55 PM PDT, Kevin Egan wrote: >I posted this question: > >I am currently using R , RStudio , and a remote computer (using an R >script) to run the same code. I start by using set.seed(123) in all >three versions

[R] Reproducibility Between Local and Remote Computer with R

2020-08-08 Thread Kevin Egan
I posted this question: I am currently using R , RStudio , and a remote computer (using an R script) to run the same code. I start by using set.seed(123) in all three versions of the code, then using glmnet to assess a matrix. Ultimately, I am having trouble reproducing the results between my l