Skip to content

Commit

Permalink
add sessionInfo to GH727 ex
Browse files Browse the repository at this point in the history
  • Loading branch information
bbolker committed Jun 18, 2023
1 parent bf34e31 commit f730c6d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/profile.R
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,12 @@ profile.merMod <- function(fitted,
"new params ",
paste(mkpar(npar1,w,xx,ores$par),
collapse=","),"\n")

if (devdiff < (-devtol))
stop("profiling detected new, lower deviance")
stop("profiling detected new, lower deviance ",
sprintf("(deviance diff = %1.3g, tolerance = %1.3g)",
abs(devdiff), devtol))

if(devdiff < 0)
warning(gettextf("slightly lower deviances (diff=%g) detected",
devdiff), domain=NA)
Expand Down
6 changes: 6 additions & 0 deletions misc/lme4_GH727.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,9 @@ if (FALSE) {
```

![](./lme4_GH727_rgl.png)

---

```{r si}
sessionInfo()
```

0 comments on commit f730c6d

Please sign in to comment.