addPkg-GRANRepository-method: addPkg

Description Usage Arguments Value Examples

Description

Add a package to the manifest for a GRANRepository

Usage

1
2
3
4
## S4 method for signature 'GRANRepository'
addPkg(x, ..., rows = makeManifest(...),
  versions = data.frame(name = manifest_df(rows)$name, version =
  NA_character_, stringsAsFactors = FALSE), replace = FALSE)

Arguments

x

A GRANRepository object

...

passed to manifest method for addPkg

rows

data.frame or unspecified. passed to manifest method for addPkg

versions

data.frame passed to manifest method for addPkg

replace

logical. Should the information in .../rows replace existing rows for the same pacakge? Defaults to FALSE, in which case an error is thrown.

Value

x with the specified package(s) added to the associated manifest

Examples

1
2
3
man = GithubManifest("gmbecker/switchr")
repo = GRANRepository(man, basedir = tempdir())
repo = addPkg(repo, rows = GithubManifest("gmbecker/rpath"))

GRANBase documentation built on Feb. 6, 2020, 5:09 p.m.