Skip to contents

Identifies which package versions should be archived by keeping the highest version found in all_versions (compared with package_version()) and returning all others. Files whose version cannot be parsed are neither kept nor archived.

Usage

find_old_versions(all_versions, package_name)

Arguments

all_versions

(character)
Character vector of all available package versions

package_name

(character)
Package name

Value

List with old_versions and index elements