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. Then you can try:
li <- duplicated_packages()
if (nrow(li) != 0)
for (i in 1:nrow(li))
remove.packages(rownames(li)[i], lib=li[i, "Lib1"])

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

## End(Not run)

HelpersMG documentation built on Oct. 5, 2023, 5:08 p.m.