duplicated_packages: List the duplicated packages with their locations

View source: R/duplicated_packages.R

duplicated_packagesR Documentation

List the duplicated packages with their locations

Description

A data.frame with the duplicated packages and their locations and version.
The columns Lib1 and Version1 should have the oldest version of the packages.

Usage

duplicated_packages()

Details

duplicated_packages lists the duplicated packages with their locations

Value

A data.frame with 4 elements for each duplicated packages:

  • versions: the version of the packages

  • libraries: the locations

Author(s)

Marc Girondot marc.girondot@gmail.com

Examples

## Not run: 
library(HelpersMG)
duplicated_packages()
# To remove the oldest versions of the installed packages, use
li <- duplicated_packages()
if (nrow(li) != 0)
    for (i in 1:nrow(li))
        remove.packages(rownames(li)[i], lib=li[i, "Lib1"])

## End(Not run)

HelpersMG documentation built on Sept. 12, 2024, 9:35 a.m.