eebf8f834d90e07136e009c6cd736646d0d8a2f5
[pkgdev.git] / README.html
1 <h1>pkgdev: help to develop R packages</h1>
2
3 <h2>Basic usage</h2>
4
5 <pre><code> #Install and load library
6 R CMD INSTALL path/to/pkgdev/folder
7 library(pkgdev) #inside R
8
9 #load some package
10 pkgpath = "path/to/some/package"
11 pkgdev.load(pkgpath) #this command also reload package
12
13 #test it (if unit tests defined under tests/ subfolders)
14 pkgdev.rtest(pkgpath) ; pkgdev.ctest(pkgpath)
15
16 #you can also run its functions
17 foo(...) ; bar(...)
18
19 #...and so on
20
21 #finally, unload package
22 pkgdev.unload(pkgpath)</code></pre>
23
24 <p>Try also pkgTest/ testing package.</p>