subset.cranly_network: Subset a 'cranly_network' according to author, package and/or...

View source: R/subset.R

subset.cranly_networkR Documentation

Subset a cranly_network according to author, package and/or directive

Description

Subset a cranly_network according to author, package and/or directive

Usage

## S3 method for class 'cranly_network'
subset(
  x,
  package = Inf,
  author = Inf,
  maintainer = Inf,
  directive = c("imports", "suggests", "enhances", "depends", "linking_to"),
  base = TRUE,
  recommended = TRUE,
  exact = TRUE,
  only = FALSE,
  ...
)

Arguments

x

a cranly_network object.

package

a vector of character strings with the package names to be matched. Default is Inf which returns all available packages in x for further subsetting.

author

a vector of character strings with the author names to be matched. Default is Inf which returns all available author in x for further subsetting.

maintainer

a vector of character strings with the maintainer names to be matched. Default is Inf which returns all available maintainers in x for further subsetting.

directive

a vector of at least one of "Imports", "Suggests", "Enhances", "Depends".

base

logical. Should we include base packages in the subset? Default is TRUE.

recommended

logical. Should we include recommended packages in the subset? Default is TRUE.

exact

logical. Should we use exact matching? Default is TRUE.

only

logical. If TRUE the subset includes only the edges between packages named in package and/or authors named in author. If FALSE (default) edges to and from all other packages and/or authors that are linked to package and/or author are included in the subset.

...

currently not used.

Value

A cranly_network object that is the subject of x.


cranly documentation built on Aug. 27, 2022, 1:07 a.m.