Skip to content

Commit

Permalink
Merge pull request #27 from nimble-dev/fix_jags_burnin
Browse files Browse the repository at this point in the history
added definition for jags burninTimeResult when burnin=0
  • Loading branch information
perrydv authored Jan 8, 2022
2 parents 38c930a + 5bf5684 commit df5bf10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compareMCMCs/R/MCMCdef_jags.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ MCMCdef_jags_impl <- function(MCMCinfo,
})
setupTime <- setupTimeResult[3]

burninTimeResult <- system.time(0) ## needs to be defined even when burnin = 0
burninTime <- 0
if(MCMCcontrol$burnin > 0) {
burninTimeResult <- system.time(
Expand Down

0 comments on commit df5bf10

Please sign in to comment.