-
@kara_woo on debugging boxplots: a case study in perseverance. Showing the debugging process #Rstudioconf
-
What is the bug? Isolate the problem, make a minimal reproducible example (reprex) #Rstudioconf
-
Next: follow the trails. Start with warning and work backwards- search on github, read code, read comments, isolate issue with debug() #rstudioconf
-
Isolating the objects with debug lets you look at intermediate result in object. Fixing issue requires experimentation, use reprex to check whether fix works. #rstudioconf
-
Fixing bugs may introduce more bugs. Test many scenarios. Generalize fix to multiple scenarios, if possible #Rstudioconf
