https://rstats-wtf.github.io/wtf-2022-rsc/
Review code troubleshooting tips.
Discuss debugging functions (traceback(), browser(), debug(), trace(), and recover()) and the additional benefits of employing some of these strategies within RStudio.
Distinguish between strategies for debugging your own code versus someone else’s code.
usethis::use_course("rstats-wtf/wtf-debugging")
Having trouble? Grab the files in this repo: https://github.com/rstats-wtf/wtf-debugging
WTF Ch 11 Debugging R code https://rstats.wtf/debugging-r-code.html
Advanced R Ch 22 Debugging https://adv-r.hadley.nz/debugging.html
Jenny Bryan 2020 RStudio Conf Keynote Object of type closure is not subsettable https://github.com/jennybc/debugging#readme
Amanda Gadrow 2018 Webinar Debugging techniques in RStudio https://www.rstudio.com/resources/webinars/debugging-techniques-in-rstudio/
Jim Hester 2019 Introduction to debugging in R and RStudio https://www.jimhester.com/talk/2019-crug-debugging/
Maëlle Salmon 2021 How to become a better R code detective? https://masalmon.eu/2021/07/13/code-detective/
Kara Woo 2019 RStudio Conf Box plots A case study in debugging and perseverance https://www.rstudio.com/resources/rstudioconf-2019/box-plots-a-case-study-in-debugging-and-perseverance/