readme.md
[pkgdev.git] / README.md
1 # pkgdev: help to develop R packages
2
3 ## Basic usage
4
5 #Install and load library
6 R CMD INSTALL path/to/pkgdev/folder
7 library(pkgdev) #inside R
8
9 #load some package (with its datasets)
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 Try also pkgTest/ testing package.