Debugging techniques in RStudio

June 22, 2018 Amanda Gadrow

Abstract

When you are building R scripts and documents, it can be challenging to figure out what went wrong when the code behaves in unexpected ways. Fortunately, there are excellent tools built into R and RStudio that can make debugging easier. This talk will explore those tools, including: using base R functions for debugging, tracing techniques, setting breakpoints in RStudio, understanding debug mode, and troubleshooting more complicated sources like packages and Shiny applications.

About the Author

Amanda Gadrow

Amanda is RStudio's quality assurance and support lead with many years’ experience writing automated test frameworks for enterprise software. She started learning R when she joined RStudio in 2016, and has been basking in its glory ever since. She is a co-organizer of R-Ladies Columbus, and spends a lot of time analyzing customer data to improve the products and optimize support.

Follow on Twitter More Content by Amanda Gadrow
Previous Article
Tidy evaluation in ggplot2
Tidy evaluation in ggplot2

h2 code { font-size: 1em; } Tidy evaluation One of the biggest changes in ggplot2 3.0.0 is suppo...

Next Article
rlang 0.2.0 - many improvements to tidy evaluation. rlang is a toolbox for working with base types, core R features
rlang 0.2.0 - many improvements to tidy evaluation. rlang is a toolbox for working with base types, core R features

We are happy to announce a new version of rlang that features many improvements to tidy evaluation: The qui...