Learn R Programming

HelpersMG (version 6.2)

duplicated_packages: 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()

Arguments

Value

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

  • versions: the version of the packages

  • libraries: the locations

Author

Marc Girondot marc.girondot@gmail.com

Details

duplicated_packages lists the duplicated packages with their locations

Examples

Run this code
if (FALSE) {
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"])
}

Run the code above in your browser using DataLab