1 # pkgdev: help to develop R packages
3 ## NOTE: (mostly) superseded by devtools
5 However it was interesting to develop, and could still be used.
9 #Install and load library
10 R CMD INSTALL path/to/pkgdev/folder
11 library(pkgdev) #inside R
13 #load some package (with its datasets)
14 pkgpath = "path/to/some/package"
15 pkgdev.load(pkgpath) #this command also reload package
17 #test it (if unit tests defined under tests/ subfolders)
18 pkgdev.rtest(pkgpath) ; pkgdev.ctest(pkgpath)
20 #you can also run its functions
25 #finally, unload package
26 pkgdev.unload(pkgpath)
28 Try also pkgTest/ testing package.
32 Warning: old R package format - might require adjustments.