Learn R Programming

pkggraph (version 0.3.0)

init: Create package metadata and dependency dataframes

Description

Initiate the package by loading the data into parent frame. This should be done as soon as the package is loaded or attached. This creates(rewrites) new variables deptable and packmeta to the environment where it is run from.

Usage

init(repository = "CRAN", ...)

Value

TRUE (invisibly)

Arguments

repository

(chr[1], Default: "CRAN") One among c("CRAN", "BioCsoft", "BioCann", "BioCexp", "BioCextra", "omegahat"). To use a repository not in this list, set 'repository' to NULL and pass named argument called 'repos' with a valid repository address. This will be passed as is to utils::available.packages().

...

Parameters to be passed to utils::available.packages()

Details

Format of packmeta: A dataframe with one row per package with some metadata.

Format of deptable: Dataframe with three columns pkg_1 (chr), relation (factor, levels = Depends, Imports, Suggests, LinkingTo, Enhances), pkg_2 (chr)