drizopoulos / JM

Joint Models for Longitudinal & Survival Data under Maximum Likelihood
34 stars 7 forks source link

Warning on second run of predict.jointModel #7

Closed vkehayas closed 6 years ago

vkehayas commented 6 years ago

I got a warning after running predict with a jointModel for a second time:

Warning message: In rm(list = ".Random.seed", envir = globalenv()) : object '.Random.seed' not found

The reason was that there was no seed to delete with rm as it was deleted in the last run and no new seed was created. I have submitted a pull request (#6) in which I moved the line

rm(list = ".Random.seed", envir = globalenv())

inside the else clause.

(For a moment I thought it was an error and created the PR, otherwise I may not have bothered you as this does not affect the results.)

drizopoulos commented 6 years ago

Thanks for noticing and reporting this.