Cotton | Testing R Code | Buch | 978-0-367-78237-5 | sack.de

Buch, Englisch, 196 Seiten, Format (B × H): 156 mm x 234 mm, Gewicht: 307 g

Reihe: Chapman & Hall/CRC The R Series

Cotton

Testing R Code


1. Auflage 2021
ISBN: 978-0-367-78237-5
Verlag: Chapman and Hall/CRC

Buch, Englisch, 196 Seiten, Format (B × H): 156 mm x 234 mm, Gewicht: 307 g

Reihe: Chapman & Hall/CRC The R Series

ISBN: 978-0-367-78237-5
Verlag: Chapman and Hall/CRC


Learn how to write R code with fewer bugs.

The problem with programming is that you are always one typo away from writing something silly. Likewise with data analysis, a small mistake in your model can lead to a big mistake in your results. Combining the two disciplines means that it is all too easy for a missed minus sign to generate a false prediction that you don’t spot until it’s too late. Testing is the only way to be sure that your code, and your results, are correct.

Testing R Code teaches you how to perform development-time testing using the testthat package, allowing you to ensure that your code works as intended. The book also teaches run-time testing using the assertive package; enabling your users to correctly run your code.

After beginning with an introduction to testing in R, the book 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 — only a small amount of experience with R is needed to get started!

Cotton Testing R Code jetzt bestellen!

Autoren/Hrsg.


Weitere Infos & Material


Introduction

Run-time testing with assertive

Development-time testing with testthat

Writing easily maintainable and testable code

Integrating testing into your packages

Writing your own assertions and expectations

Answers to exercises


Richard Cotton



Ihre Fragen, Wünsche oder Anmerkungen
Vorname*
Nachname*
Ihre E-Mail-Adresse*
Kundennr.
Ihre Nachricht*
Lediglich mit * gekennzeichnete Felder sind Pflichtfelder.
Wenn Sie die im Kontaktformular eingegebenen Daten durch Klick auf den nachfolgenden Button übersenden, erklären Sie sich damit einverstanden, dass wir Ihr Angaben für die Beantwortung Ihrer Anfrage verwenden. Selbstverständlich werden Ihre Daten vertraulich behandelt und nicht an Dritte weitergegeben. Sie können der Verwendung Ihrer Daten jederzeit widersprechen. Das Datenhandling bei Sack Fachmedien erklären wir Ihnen in unserer Datenschutzerklärung.