Description Usage Arguments Value Author(s) Examples
When hosting a local mirror of R packages, you need a PACKAGES file which summarises the packages that are being hosted. This writes that PACKAGES file.
1 2 3 4 | write_PACKAGES(pkgs, outfile = "~/src/contrib/PACKAGES")
write_PACKAGES_dir(dir,
outfile = "~/src/contrib/PACKAGES")
|
pkgs |
a character vector of package names |
outfile |
the path to the PACKAGES file. this should be within <mirror>/src/contrib/PACKAGES |
dir |
the path to a directory containing tar.gz bundles. |
nothing. the outfile is written
Mark Cowley, 2013-01-30
1 2 3 4 5 6 7 8 9 10 | f <- tempfile()
write_PACKAGES(c("mjcbase", "mjcstats", "mjcgraphics", "excelIO"), f)
readLines(f)
## Not run:
# all of my packages:
pkgs <- basename(system("find ~/src/R -maxdepth 2 -name DESCRIPTION -exec dirname {} \\;", intern=T))
write_PACKAGES(pkgs)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.