From alsergbox at gmail.com  Sat Jan 18 14:18:16 2014
From: alsergbox at gmail.com (Alexey Sergushichev)
Date: Sat, 18 Jan 2014 17:18:16 +0400
Subject: [Rd] Using unit-tests as examples
Message-ID: <CAMGHQ97ct+FQc361micsLrx8CYnFE8WHvCBtVLvWL82bdpDFhA@mail.gmail.com>

Hi,

Which is the best way to use unit tests as examples for documentation?
I use testthat, but if there is a good way to do this, for example,
only with RUnit, it'd still be good to know.

Unit-tests are usually simple and concise, so they are good candidates
for example code, but I don't want to copy them into documentation and
maintain by hands. I tried to google how people handle this, but
didn't find anything.

---
Best regards,
Alexey



[Rd] Using unit-tests as examples
Alexey Sergushichev