pkgverse.Rd
Create your own pkgverse
pkgverse(pkg, pkgs, keep = FALSE, use = NULL, install_if = FALSE)
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`. |
Installs a package of desired name, which, when loaded, will load,
handle, and display conflicts of the packages supplied via pkgs
.
# 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") ) # }