-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chapters 9 & 11 Fail to Knit #10
Comments
Thanks much - this is very helpful! Because we had to freeze R package versions many months ago when the production process started, there will be inevitable issues with package updates. For now, I added a section to the Preface indicating which versions of which packages we used for this edition of the textbook, but I will definitely make your suggested changes in the next edition (or in periodic code updates). |
@alex-gable Can you make a PR with this? @proback Can we merge this? I am not able to compile the book in PDF |
@raffaem If you use the package versions listed in the preface are you able to compile the book? |
@raffaem trying to be mindful/respectful of the fact that this is not my work, I've put the changes I've made in alex-gable/BeyondMLR@b96ab33. the content blocks you're looking for are in chapters 6, 9, 11 in that repo. What's relatively opaque amongst the changes, and only alluded to above, is the addition of @proback want to double emphasize that I want to make sure I'm not breaking any rules in that branch (I've for comparison's sake, I've added my current packages as used in the project. |
Once you make the changes above (and in Issue #12 ), it almost all works. Having a problem with the following at lines 518-28 in Chapter 11:
This causes the following error:
Major difference would seem to be some difference between |
OK, seemed to have solved it, in that the R code will compile. Just needed to follow the rewrite in gable's Chap 11 revs more precisely. Still having problems with compile from Rmd to HTML/PDF. Throwing up hands for now and returning to this later. |
I'm sorry for my silence - I've gotten pulled in several other directions over the past year. My new goal is to make a series of corrections and additions that I've been accumulating by the end of January 2023 (when I might actually have a small break to focus on this), possibly using quarto. Feel free to share any other suggestions you'd have before then. |
Problem
Chapter 9 and 11 are failing to knit due to changes in dplyr(1.0) or broom(0.7)
I consulted this StackOverflow post for guidance (and provided my own solution) in order to solve the error which occurs in the below locations.
BeyondMLR/09-Two-Level-Longitudinal-Data.Rmd
Line 400 in e6ebd56
BeyondMLR/09-Two-Level-Longitudinal-Data.Rmd
Line 407 in e6ebd56
BeyondMLR/09-Two-Level-Longitudinal-Data.Rmd
Line 414 in e6ebd56
BeyondMLR/09-Two-Level-Longitudinal-Data.Rmd
Line 461 in e6ebd56
BeyondMLR/09-Two-Level-Longitudinal-Data.Rmd
Line 468 in e6ebd56
BeyondMLR/09-Two-Level-Longitudinal-Data.Rmd
Line 475 in e6ebd56
BeyondMLR/11-Generalized-Linear-Multilevel-Models.Rmd
Line 523 in e6ebd56
BeyondMLR/11-Generalized-Linear-Multilevel-Models.Rmd
Line 628 in e6ebd56
Example Solution
Looking at the documentation for
do()
, it appears to have been superseded with a recommendation to usenest_by()
. Conveniently, the documentation examples cover almost this exact use case (see details)This solution can nearly be line-for-lined copy for the errors occurring on lines 461-475.
Chapter 9 also has an issue here knitting due to failure to converge. Using 500 iterations seemed to do the trick:
Finally, in Chapter 11, there's a missing
library(broom)
and a handful of unscopedselect()
calls needingdplyr::
prefixed.BeyondMLR/11-Generalized-Linear-Multilevel-Models.Rmd
Line 327 in e6ebd56
BeyondMLR/11-Generalized-Linear-Multilevel-Models.Rmd
Line 478 in e6ebd56
Hope this unsolicited help is, well, helpful!
The text was updated successfully, but these errors were encountered: