Package 'pkgverse'

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.
Authors: Michael Wayne Kearney [aut, cre]
Maintainer: Michael Wayne Kearney <[email protected]>
License: CC0
Version: 0.0.1
Built: 2025-01-29 04:38:52 UTC
Source: https://github.com/mkearney/pkgverse

Help Index


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)