Learn R Programming

switchr (version 0.14.8)

pkgname: pkgname

Description

Get or set the package name associated with a Package Source

Usage

pkgname(x)

# S4 method for PkgSource pkgname(x)

pkgname(x) <- value

# S4 method for PkgSource pkgname(x) <- value

Value

for the getter, the package name as a string, for the setter, an updated PkgSource (or subclass) object with the new package name.

Arguments

x

A source

value

The new pkgname