description | Distribute R package with nested subfolders in R/ |
last change | Tue, 23 Jan 2018 00:53:07 +0000 (01:53 +0100) |
URL | [public ] git://auder.net/pkgdev.git |
[private] git@auder.net:pkgdev.git |
However it was interesting to develop, and could still be used.
#Install and load library
R CMD INSTALL path/to/pkgdev/folder
library(pkgdev) #inside R
#load some package (with its datasets)
pkgpath = "path/to/some/package"
pkgdev.load(pkgpath) #this command also reload package
#test it (if unit tests defined under tests/ subfolders)
pkgdev.rtest(pkgpath) ; pkgdev.ctest(pkgpath)
#you can also run its functions
foo(...) ; bar(...)
#...and so on
#finally, unload package
pkgdev.unload(pkgpath)
Try also pkgTest/ testing package.
Warning: old R package format - might require adjustments.
6 years ago | master | shortlog | log | tree |