Skip to contents

Retrieve links of repository packages to other packages' documentation.

Usage

links(packages = NULL)

Arguments

packages

A vector with packages or NULL for all packages.

Value

A data.frame with the links on packages. It has 4 columns: Package, Anchor, Target and Source. NA if not able to collect the data from the repository.

Examples

oldrepos <- getOption("repos")
setRepositories(ind = c(1, 2), addURLs = "https://cran.r-project.org")
head(links(c("ggplot2", "BiocCheck")))
#>   Package   Source          Anchor         Target
#> 1 ggplot2 Coord.Rd        =ggproto      ggproto()
#> 2 ggplot2 Coord.Rd                         Layout
#> 3 ggplot2 Coord.Rd =complete_theme complete theme
#> 4 ggplot2 Coord.Rd =complete_theme complete theme
#> 5 ggplot2 Coord.Rd =complete_theme complete theme
#> 6 ggplot2 Coord.Rd =complete_theme complete theme

# Clean  up
options(repos = oldrepos)