packagepackage: Iterative operations on a collection of packages. Useful for...

Description Examples

Description

Iterative operations on a collection of packages. Useful for R developers with many packages to maintain.

Examples

 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)

robertzk/packagepackage documentation built on May 27, 2019, 10:35 a.m.