pkgverse: pkgverse

Description Usage Arguments Value Examples

View source: R/pkgverse.R

Description

Create your own pkgverse

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## 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)

pkgverse documentation built on May 1, 2019, 6:28 p.m.