Amherst-Statistics / IS5inR

Companion materials for De Veaux, Velleman, and Bock's "Intro Stats" 5th edition
MIT License
0 stars 3 forks source link

Chapter09.Rmd is not compiling #37

Closed nicholasjhorton closed 5 years ago

nicholasjhorton commented 6 years ago

label: unnamed-chunk-17 Error: C stack usage 7971136 is too close to the limit

Execution halted

shukryzablah commented 6 years ago

Changing this line:

glance(coasterlm2asdata)

to this line:

glance(coasterlm2asdata %>% as.data.frame())

Ouput:

# A tibble: 1 x 4
   nrow  ncol complete.obs na.fraction
  <int> <int>        <int>       <dbl>
1    90    11           90           0

solves the issue, allows compilation, but gives deprecation warning: glance.data.frame is deprecated.

This is the justification for this line: Here we usenames()to check out the column names andglance()to view the structure of the data set.

I think it's better just to drop the line.

nicholasjhorton commented 5 years ago

Fixed via https://github.com/Amherst-Statistics/IS5inR/commit/812e8bb47c95e9adaa1692db6b397604e68d4f2a

(note that glance wants a lm as argument, not a data frame)