Advent review 2018

A collection of R tips and tricks gathered over 2018 — from using {here} and Projects, to tidygraph, forcats, and accessibility.
R
Published

November 27, 2018

A collection of R tips gathered over 2018 for the advent calendar series.

  1. Use Projects and here all the time
  2. Use namer for naming code chunks
  3. Pipes are syntactic sugar
  4. Use + NULL in ggplot2 for easy commenting out of layers
  5. DOI! Or else. DOI to BIBTEX.
  6. leaflet, highcharter etc are htmlwidgets
  7. Use tidyverse rather than loading dplyr alone
  8. forcats makes life so much easier for reordering ggplot features
  9. Use styler and lintr
  10. Process free-text gender responses with gendercoder
  11. If you’re doing GIS and you haven’t started using the sf package, switch now!
  12. Xaringan is the best option for slides
  13. visNetwork is incredibly slow at doing layouts! Always use visIgraphLayout
  14. Use my_data |> View(title = "just imported")
  15. usethis massively simplifies project development
  16. rfigshare is slightly frustrating to use — here are the gotchas
  17. You’re showing your age if you’re still using shinyUI() and shinyServer()
  18. shiny controls dependent on data need to be made in the server
  19. Consider accessibility when writing blogposts: r-resources.massey.ac.nz/rmarkdown
  20. Bookdown for anything longer than a few paragraphs!
  21. Include your ORCID number in package DESCRIPTION files
  22. Sometimes you need a pick-me up. Try out praise 🎉