Version: | 0.0.1 |
Title: | Build a Meta-Package Universe |
Description: | Build your own universe of packages similar to the 'tidyverse' package https://tidyverse.org/ with this meta-package creator. Create a package-verse, or meta package, by supplying a custom name for the collection of packages and the vector of desired package names to include– and optionally supply a destination directory, an indicator of whether to keep the created package directory, and/or a vector of verbs implement via the 'usethis' http://usethis.r-lib.org/ package. |
Encoding: | UTF-8 |
LazyData: | true |
ByteCompile: | true |
RoxygenNote: | 6.1.0.9000 |
Imports: | devtools, usethis, utils |
License: | CC0 |
URL: | https://pkgverse.mikewk.com |
BugReports: | https://github.com/mkearney/pkgverse/issues |
NeedsCompilation: | no |
Packaged: | 2018-11-02 01:16:21 UTC; mwk |
Author: | Michael Wayne Kearney
|
Maintainer: | Michael Wayne Kearney <kearneymw@missouri.edu> |
Repository: | CRAN |
Date/Publication: | 2018-11-14 09:10:06 UTC |
pkgverse
Description
Create your own pkgverse
Usage
pkgverse(pkg, pkgs, keep = FALSE, use = NULL, install_if = FALSE)
Arguments
pkg |
Name of your set of packages. It's recommended that users append this name with something like 'verse' or otherwise provide some kind of explicit/obvious indicator that the package name is a stand in for a selection of packages. |
pkgs |
Character vector of package names. |
keep |
If not 'FALSE', then used to indicate location to keep the 'pkg' dir (name), which should _not_ include the 'pkg' name but should exist. It will be 'path.expand()'ed and tested for presence. |
use |
If not 'NULL' (the default), then a character vector of 'usethis' "use" functions (the bit after the first underscore) that make sense for a package. |
install_if |
Logical indicating whether to install (from CRAN) any packages in 'pkgs' that are not already installed on the system. Defaults to 'FALSE'. |
Value
Installs a package of desired name, which, when loaded, will load,
handle, and display conflicts of the packages supplied via pkgs
.
Examples
## Not run:
## vector of pkgs
tidyweb <- c("curl", "jsonlite", "httr", "xml2", "rvest", "purrr", "dplyr",
"stringi", "gdns", "urltools", "iptools", "seleniumPipes", "webdriver",
"HARtools", "xslt", "V8", "webreadr", "openssl", "splashr")
## create tidyweb pkgverse
pkgverse("tidyweb", tidyweb,
keep = "~/packages",
use = c("readme_rmd", "rstudio", "testthat", "mit_license", "git")
)
## End(Not run)