| 1 | |-------------- |
| 2 | | Basic usage : |
| 3 | |-------------- |
| 4 | |
| 5 | #Install |
| 6 | R CMD INSTALL path/to/pkgdev/folder |
| 7 | |
| 8 | #Launch R |
| 9 | R |
| 10 | |
| 11 | #load library |
| 12 | library(pkgdev) |
| 13 | |
| 14 | #load some package |
| 15 | pkgpath = "path/to/some/package" |
| 16 | pkgdev.load(pkgpath) |
| 17 | |
| 18 | #test it (if unit tests defined under tests/ subfolders) |
| 19 | pkgdev.rtest(pkgpath) |
| 20 | pkgdev.rtest(pkgpath) |
| 21 | |
| 22 | #you can also run its functions |
| 23 | foo(...) |
| 24 | bar(...) |
| 25 | |
| 26 | #reload package to test modifications |
| 27 | pkgdev.load(pkgpath) |
| 28 | |
| 29 | #...and so on |
| 30 | |
| 31 | #finally, unload package |
| 32 | pkgdev.unload(pkgpath) |
| 33 | |
| 34 | --------------------------------- |
| 35 | |
| 36 | Try also pkgTest/ testing package |