Iterative operations on a collection of packages. Useful for R developers with many packages to maintain.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# You can use pkgapply to iterate over each package and apply some
# operation.
pkgapply(c('package1', 'package2'), dir = '/root/dir', function(pkg) { ... })
# If you leave the package names blank, it will loop over all directories
# relative to `dir` that contain a DESCRIPTION file and are thus recognized
# as being R packages.
pkgapply(dir = '/root/dir', function(pkg) { ... })
# If you do not provide a directory, the current directory will be used.
pkgapply(function(pkg) { ... })
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.