Testing R Code teaches you how to write R code with fewer bugs, combining development-time and run-time testing using the testthat and assertive packages. It covers advanced cases such as integrating tests into R packages, testing code that accesses databases, testing C++ code with Rcpp, and testing graphics. Format: Paperback / softback Length: 178 pages Publication date: 31 March 2021 Publisher: Taylor & Francis Ltd Testing R Code is a comprehensive guide to writing R code with fewer bugs and ensuring the correctness of your code and results. The book begins with an introduction to testing in R, covering development-time testing using the testthat package and run-time testing using the assertive package. It then explores more advanced cases such as integrating tests into R packages, testing code that accesses databases, testing C++ code with Rcpp, and testing graphics. Each topic is explained with real-world examples and has accompanying exercises for readers to practise their skills. Testing R Code is suitable for beginners with some experience with R, and it will help you write more reliable and efficient R code. Weight: 363g Dimension: 234 x 156 (mm) ISBN-13: 9780367782375