Main points:

  • standard software testing asks if we get the right answer to a particular problem
  • an alternative is to generate random problems and try to infer problems
  • this can more thoroughly test the space of problems
  • random input testing can be fun

annotated slides (pdf)

Presented 2011 August at useR!2011.

Going further

There is a bit more on this in Tao Te Programming.

Kommentarer inaktiverade för Random Input Testing using R

See more

Explore more content and blog posts.

  • jun 25, 26

    Several packages on CRAN provide (or relate to) interfaces between databases and R.  Here is a summary, mostly in the words of the package descriptions.  Remember that package names are [...]

  • jun 25, 26

    Chapter 32 of Tao Te Programming advises you to make bricks instead of monoliths.  Here is an example. The example is written with the syntax of R and is a [...]

  • jun 25, 26

    There is a mechanism that allows variability in the arguments given to R functions.  Technically it is ellipsis, but more commonly called ”…”, dots, dot-dot-dot or three-dots. Basics The three-dots [...]