datalorax / sds-r

Repo for a draft book on social data science methods with R
https://sds.pub
Creative Commons Attribution 4.0 International
9 stars 4 forks source link

book skeleton #41

Closed brendanhcullen closed 3 years ago

brendanhcullen commented 3 years ago

This PR creates a skeleton for the book with (for now) mostly empty chapters. The book is split into 4 sections, each with ~8-10 chapters:

The book also contains Preface and Welcome sections at the very top (which could perhaps ultimately be collapsed into one section). Eventually it might be nice to have a logo to place at the very top and perhaps link to open-source license, etc. (à la https://stat545.com/).

This PR also makes the following updates to _output.yaml:

I've added a bookdown.yml file that contains all of the chapter names in the desired order in a YAML filed called rmd_files. I opted for this approach rather than prefixing all of the chapter names with a number (e.g. 01_introduction-to-R.Rmd) because this allows for automatic number of chapters, and if we decide to add or remove a chapter this will allow us to avoid having to manually re-number all of the chapters.

datalorax commented 3 years ago

Wonderful! The only thing I'm not sure of is the continuous scrolling. For chapters like the feature engineering one it gets really long. But maybe that's better? I'm not sure. We can go with this for now and see how we like it, and we can always revert later if we decide we don't.

I like the idea of using _output.yaml too and was also thinking we should go that way. The only thing is we might want to re-name the existing files so they don't have the numbers because that could be confusing if they don't match. Then again, it also could be confusing if the order in your local directory is really different than the chapter order (i.e., if they're sorted in alphabetical order). But I guess for now I'd suggest we just remove the numbers from the file names.

Any other thoughts before we merge this in @ohmaddi?

brendanhcullen commented 3 years ago

@datalorax great points!

For posterity, if we want to undo continuous scrolling at any point, we'll just need to change split_by: chapter to split_by: section in _output.yml.

re: file naming, I actually re-named the existing chapter files in 43f8683 (sorry for the bloated commit). Perhaps once we feel really confident that the number of chapters & chapter order won't change we can re-name the files with their number?In the meantime, I figured that few people will be interacting with the repo besides us, but if we wanted a clearer indication of chapter order in the repo, I'm more than happy to add the ordered list in the README.

datalorax commented 3 years ago

Sounds great! Thanks for all your help on this. I think we can go ahead and merge this in, but I'll wait a bit longer to see if Ouafaa has any feedback first.

ohmaddi commented 3 years ago

@brendanhcullen thank you so much for this. It all looks great to me. For the split, by section might be better but this might be the effect of what we go used to so let’s try the continuous scrolling and see how it feels. For the skeleton, do we want to add a chapter on cloud computing in the machine learning section?

I plan to start working on this chapter soon mostly with GC.

datalorax commented 3 years ago

Good catch @ohmaddi! Yes, I think we should do that. Would this be maybe the fourth chapter in the ML section? Also, would you mind updating the book outline in the project with this change?

ohmaddi commented 3 years ago

Great - @datalorax I just changed it in the project menu. I added it as a 4th chapter. Another option could be the last chapter so they can actually try running models as they set up cloud accounts. It’s a conundrum but I could see it beneficial as either 4th or last.

brendanhcullen commented 3 years ago

@datalorax @ohmaddi thanks, y'all -- I added Cloud computing as the 4th chapter in the ML section for now (1f268cc).

datalorax commented 3 years ago

Perfect! I'll merge it in now. Thank you both!