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. 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()
Arguments
Value
A data.frame with 4 elements for each duplicated packages:
- versions: the version of the packages
- libraries: the locations
Details
duplicated_packages lists the duplicated packages with their locations