Skip to contents

Retrieve links of repository packages to other packages' documentation.

Usage

alias(packages = NULL)

Arguments

packages

A vector with packages or NULL for all packages.

Value

A data.frame with three columns: Package, Source and Target. NA if not able to collect the data from the repository.

Note

For completeness it also provides the alias of R packages themselves.

See also

Examples

oldrepos <- getOption("repos")
setRepositories(ind = c(1, 2), addURLs = "https://cran.r-project.org")
# show repositories
getOption("repos")
#>                                          CRAN 
#>                                      "@CRAN@" 
#>                                      BioCsoft 
#> "https://bioconductor.org/packages/3.22/bioc" 
#>                                               
#>                  "https://cran.r-project.org" 
head(alias(c("ggplot2", "BiocCheck")))
#>   Package   Source         Target
#> 1 ggplot2 Coord.Rd          Coord
#> 2 ggplot2 Coord.Rd CoordCartesian
#> 3 ggplot2 Coord.Rd     CoordFixed
#> 4 ggplot2 Coord.Rd      CoordFlip
#> 5 ggplot2 Coord.Rd       CoordMap
#> 6 ggplot2 Coord.Rd     CoordPolar

# Clean  up
options(repos = oldrepos)