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

2020-08-09 Thread Kevin Egan
Hi Stephen, Thanks, I’m now trying to use R 3.6.3 on the HPC, I was able to run a few tests remote and get reproducible results. The batches have not yet run, but I’m hoping will give reproducible results when they do. Thanks, Kevin On Sun, Aug 9, 2020 at 08:42 stephen sefick wrote: > Hi Kevi

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

2020-08-09 Thread Duncan Murdoch
On 09/08/2020 8:33 a.m., Kevin Egan wrote: Hi Abby, After running a few tests on my local and remote versions of R, this seems to be the most plausible answer to the problem. I put set.seed(123) several times within my code and produced the same results but would rather not have to do that if po

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

2020-08-09 Thread stephen sefick
Hi Kevin, I think Abby has suggested something similar to what I think the problem is related to - environment setup. Some possible solutions: The renv and packrat packages are a way to version your packages to help with reproducability. Anaconda might be a solution for the R version and package

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

2020-08-09 Thread Kevin Egan
Hi Abby, After running a few tests on my local and remote versions of R, this seems to be the most plausible answer to the problem. I put set.seed(123) several times within my code and produced the same results but would rather not have to do that if possible. On Sat, Aug 8, 2020 at 6:05 PM Abby

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

2020-08-09 Thread Kevin Egan
Local: R version 4.0.2 (2020-06-22) Platform: x86_64-apple-darwin17.0 (64-bit) Running under: macOS Catalina 10.15.6 Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.fram

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