Closed nicholasjhorton closed 3 years ago
I'm not seeing this one. The error suggests that when we go to pluck()
from the coefficients, there is only one instead of two.
Could randomness be at fault? Are you still seeing a problem?
I am able to compile all the solutions through foundations
without getting tripped up on this exercise.
How are you compiling? When I build the solutions, all I get is a subset (likely due to the following code if I'm parsing it correctly):
ex <- mdsr2exercises::mdsr_exercise_all()
chapters <- ex %>%
select(chapter) %>%
distinct()
to_compile <- chapters %>%
# ethics is very slow to compile, but it works
# filter(!grepl("ethics", chapter)) %>%
# pick a specific chapter
filter(grepl("data", chapter)) %>%
pull(chapter)
print_solutions <- function(chap, hide = FALSE) {
if (!hide & chap %in% to_compile) {
mdsr2exercises::knit_mdsr_exercises_filter(
chapter == chap,
show_answers = show_solutions
)
}
}
Yeah, you just have to comment out all those filters to get what you want.
yields an error: