Coder Social home page Coder Social logo

bookclub-rpkgs's Introduction

R4DS R Packages Book Club

Welcome to the R4DS R Packages Book Club!

We are working together to read R Packages by Hadley Wickham and Jenny Bryan (work-in-progress 2nd edition, copyright 2022). Join the #book_club-rpkgs channel on the R4DS Slack to participate. As we read, we are producing notes about the book.

Meeting Schedule

If you would like to present, please see the sign-up sheet for your cohort (linked below, and pinned in the #book_club-rpkgs channel on Slack)!


How to Present

This repository is structured as a {bookdown} site. To present, follow these instructions:

Do these steps once:

  1. Setup Github Locally (also see Happy Git and GitHub for the useR)
  2. Install {usethis} and {devtools} install.packages(c("usethis", "devtools"))
  3. Set up a default {usethis} directory:
  • usethis::edit_r_profile() to open your profile for editing.
  • Add this line: options(usethis.destdir = "YOURDIR") (replace YOURDIR with the root directory under which you want your R projects to appear; or you can skip these steps, and the project will be saved to your Desktop).
  • Restart your R session (Session/Restart R in Rstudio).
  1. usethis::create_from_github("r4ds/bookclub-rpkgs") (cleanly creates your own copy of this repository).

Do these steps each time you present another chapter:

  1. Open your project for this book.
  2. usethis::pr_init("my-chapter") (creates a branch for your work, to avoid confusion, making sure that you have the latest changes from other contributors; replace my-chapter with a descriptive name, ideally).
  3. devtools::install_dev_deps() (installs any packages used by the book that you don't already have installed).
  4. Edit the appropriate chapter file, if necessary. Use ## to indicate new slides (new sections).
  5. If you use any packages that are not already in the DESCRIPTION, add them. You can use usethis::use_package("myCoolPackage") to add them quickly!
  6. Build the book! ctrl-shift-b (or command-shift-b) will render the full book, or ctrl-shift-k (command-shift-k) to render just your slide. Please do this to make sure it works before you push your changes up to the main repo!
  7. Commit your changes (either through the command line or using Rstudio's Git tab).
  8. usethis::pr_push() (pushes the changes up to github, and opens a "pull request" (PR) to let us know your work is ready).
  9. (If we request changes, make them)
  10. When your PR has been accepted ("merged"), usethis::pr_finish() to close out your branch and prepare your local repository for future work.
  11. Now that your local copy is up-to-date with the main repo, you need to update your remote fork. Run gert::git_push("origin") or click the Push button on the Git tab of Rstudio.

When your PR is merged into the main branch, the bookdown site will rebuild, adding your slides to this site.

Images

If any static files are used in the .Rmd for a chapter, please add them into the directory ./images/<chapter_number>-<title_stub>/. For example, to include images for the "02-the-whole-game" chapter, please place them in ./images/02-the-whole-game/. Name files in a manner that is informative on what the image represents.

bookclub-rpkgs's People

Contributors

archavan avatar blam3 avatar collinberke avatar imgbot[bot] avatar ivelasq avatar jonthegeek avatar rmetcalf414 avatar rwparsons avatar schafert avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.